Created
January 3, 2011 13:40
-
-
Save renestein/763469 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[KnownType("GetKnownTypes")] | |
public class KnownTypesDictionary : Dictionary<string, object> | |
{ | |
private static Type[] KNOWN_TYPES = | |
{ | |
typeof(OrderVO), | |
typeof(PostVO), | |
typeof(SiteVO), | |
typeof(CommentVO), | |
typeof(ViewObjectBase), | |
typeof(ObservableCollection<OrderVO>), | |
typeof(ObservableCollection<SiteVO>), | |
typeof(ObservableCollection<CommentVO>), | |
typeof(ObservableCollection<PostVO>), | |
typeof(KnownTypesDictionary) | |
}; | |
public KnownTypesDictionary() | |
: base() | |
{ | |
} | |
public KnownTypesDictionary(IDictionary<String, Object> originalDictionary) : base(originalDictionary) | |
{ | |
} | |
public static IEnumerable<Type> GetKnownTypes() | |
{ | |
return KNOWN_TYPES; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment