2 writes to _contracts
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ContextAware.cs (2)
23
_contracts
= new (DataContract?, WeakReference<DataContract>?)[size];
46
Array.Resize<(DataContract?, WeakReference<DataContract>?)>(ref
_contracts
, newSize);
5 references to _contracts
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\ContextAware.cs (5)
19
public int Length =>
_contracts
.Length;
27
public DataContract? GetItem(int index) =>
_contracts
[index].strong ?? (
_contracts
[index].weak?.TryGetTarget(out DataContract? ret) == true ? ret : null);
35
_contracts
[index].strong = dataContract;
39
_contracts
[index].weak = new WeakReference<DataContract>(dataContract);