CachedReadWrite GetCachedType(Type type) { lock (TypeCache) { CachedReadWrite ret; if (!TypeCache.TryGetValue(type, out ret)) { TypeCache.Add(type, ret = new CachedReadWrite(type)); } return(ret); } }
CachedReadWrite GetCachedType(Type type) { lock (TypeCache) { CachedReadWrite ret; if (!TypeCache.TryGetValue(type, out ret)) TypeCache.Add(type, ret = new CachedReadWrite(type)); return ret; } }