public MethodSignatureCollection() : base(1, 8, StringComparer.Ordinal) { Counts = new ConcurrentCache <NamedMethodSignature, MethodSignatureSet.Count>( 1, 8, new NamedMethodSignature.Comparer() ); }
public CachingMetadataResolver(IAssemblyResolver assemblyResolver) : base(assemblyResolver) { Cache = new ConcurrentCache <Key, TypeDefinition>( Environment.ProcessorCount, 4096, new KeyComparer() ); }
public CachingMetadataResolver(IAssemblyResolver assemblyResolver) : base(assemblyResolver) { Cache = new ConcurrentCache <Key, TypeDefinition>( Environment.ProcessorCount, 4096, new KeyComparer() ); DoResolve = (key, type) => { var result = base.Resolve(type); return(result); }; }
protected ConcurrentCache(ConcurrentCache <TKey, TValue> cloneSource) { // FIXME: Probably not thread-safe? Storage = new ConcurrentDictionary <TKey, TValue>(cloneSource.Storage, cloneSource.Comparer); States = new ConcurrentDictionary <TKey, ConstructionState>(Environment.ProcessorCount, Environment.ProcessorCount, cloneSource.Comparer); }
internal MethodSignatureSet(MethodSignatureCollection collection, string name) { Counts = collection.Counts; Name = name; }