Exemple #1
0
        public JsonReflectionApi()
        {
            CreatorCache = XThreadSafe.ThreadSafeStore <Type, Func <object[], object> >(GetCreator);

#if !(NET20 || DOTNET)
            AssociatedMetadataTypesCache = XThreadSafe.ThreadSafeStore <Type, Type> (GetAssociateMetadataTypeFromAttribute);
#endif
        }
Exemple #2
0
 public EnumApi()
 {
     EnumMemberNamesPerType = XThreadSafe.ThreadSafeStore <Type, BidirectionalDictionary <string, string> >(InitializeEnumType);
 }