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

#if !(NET20 || DOTNET)
            AssociatedMetadataTypesCache = XThreadSafe.ThreadSafeStore <Type, Type> (GetAssociateMetadataTypeFromAttribute);
#endif
        }
示例#2
0
 public EnumApi()
 {
     EnumMemberNamesPerType = XThreadSafe.ThreadSafeStore <Type, BidirectionalDictionary <string, string> >(InitializeEnumType);
 }
示例#3
0
 public static TValue Get <TKey, TValue>(this ThreadSafeStore <TKey, TValue> store, TKey key)
 {
     return(XThreadSafe.Get <TKey, TValue>(store, key));
 }