1 write to _helper
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\CollectionDataContract.cs (1)
142_helper = (base.Helper as CollectionDataContractCriticalHelper)!;
50 references to _helper
System.Private.DataContractSerialization (50)
System\Runtime\Serialization\CollectionDataContract.cs (50)
136[MemberNotNull(nameof(_helper))] 143_collectionItemName = _helper.CollectionItemName; 144if (_helper.Kind == CollectionKind.Dictionary || _helper.Kind == CollectionKind.GenericDictionary) 146_itemContract = _helper.ItemContract; 148_helper.SharedTypeContract = sharedTypeContract; 153internal CollectionKind Kind => _helper.Kind; 155internal Type ItemType => _helper.ItemType; 161get => _itemContract ?? _helper.ItemContract; 166_helper.ItemContract = value; 170internal DataContract? SharedTypeContract => _helper.SharedTypeContract; 174get => _helper.ItemName; 175set => _helper.ItemName = value; 182get => _helper.KeyName; 183set => _helper.KeyName = value; 188get => _helper.ValueName; 189set => _helper.ValueName = value; 221if (_helper.ChildElementNamespace == null && !IsDictionary) 225_helper.ChildElementNamespace = tempChildElementNamespace; 227_childElementNamespace = _helper.ChildElementNamespace; 237get => _helper.IsItemTypeNullable; 238set => _helper.IsItemTypeNullable = value; 243get => _helper.IsConstructorCheckRequired; 244set => _helper.IsConstructorCheckRequired = value; 247internal MethodInfo? GetEnumeratorMethod => _helper.GetEnumeratorMethod; 249internal MethodInfo? AddMethod => _helper.AddMethod; 251internal ConstructorInfo? Constructor => _helper.Constructor; 257get => _helper.KnownDataContracts; 258internal set => _helper.KnownDataContracts = value; 261internal string? InvalidCollectionInSharedContractMessage => _helper.InvalidCollectionInSharedContractMessage; 263internal string? SerializationExceptionMessage => _helper.SerializationExceptionMessage; 265internal string? DeserializationExceptionMessage => _helper.DeserializationExceptionMessage; 269private bool ItemNameSetExplicit => _helper.ItemNameSetExplicit; 284if (_helper.XmlFormatWriterDelegate == null) 288if (_helper.XmlFormatWriterDelegate == null) 292_helper.XmlFormatWriterDelegate = tempDelegate; 296return _helper.XmlFormatWriterDelegate; 313if (_helper.XmlFormatReaderDelegate == null) 317if (_helper.XmlFormatReaderDelegate == null) 321ThrowInvalidDataContractException(_helper.DeserializationExceptionMessage, type: null); 326_helper.XmlFormatReaderDelegate = tempDelegate; 330return _helper.XmlFormatReaderDelegate; 348if (_helper.XmlFormatGetOnlyCollectionReaderDelegate == null) 352if (_helper.XmlFormatGetOnlyCollectionReaderDelegate == null) 361ThrowInvalidDataContractException(_helper.DeserializationExceptionMessage, type: null); 371_helper.XmlFormatGetOnlyCollectionReaderDelegate = tempDelegate; 375return _helper.XmlFormatGetOnlyCollectionReaderDelegate; 385_helper.IncrementCollectionCount(xmlWriter, obj, context); 391return _helper.GetEnumeratorForCollection(obj); 398return _helper.GetCollectionElementType();