예제 #1
0
 public static PrimitiveXamlType Get(Type type)
 {
     lock (_cache)
     {
         PrimitiveXamlType result;
         if (!_cache.TryGetValue(type, out result))
         {
             _cache[type] = result = new PrimitiveXamlType(type);
         }
         return(result);
     }
 }
예제 #2
0
 public static PrimitiveXamlType Get(Type type)
 {
     lock (_cache)
     {
         PrimitiveXamlType result;
         if (!_cache.TryGetValue(type, out result))
             _cache[type] = result = new PrimitiveXamlType(type);
         return result;
     }
 }