private CopyOnWriteDictionary(Microsoft.Build.Collections.CopyOnWriteDictionary <K, V> that) { this.keyComparer = that.keyComparer; this.backing = that.backing; if (this.backing != null) { lock (this.backing.SyncRoot) { this.backing.AddRef(); } } }
internal bool HasSameBacking(Microsoft.Build.Collections.CopyOnWriteDictionary <K, V> other) { return(object.ReferenceEquals(other.backing, this.backing)); }
private CopyOnWriteBackingDictionary(Microsoft.Build.Collections.CopyOnWriteDictionary <K, V> .CopyOnWriteBackingDictionary <K1, V1> that) : base(that, that.Comparer) { this.refCount = 1; }