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