1 write to _helper
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\CollectionDataContract.cs (1)
141_helper = (base.Helper as CollectionDataContractCriticalHelper)!;
50 references to _helper
System.Private.DataContractSerialization (50)
System\Runtime\Serialization\CollectionDataContract.cs (50)
135[MemberNotNull(nameof(_helper))] 142_collectionItemName = _helper.CollectionItemName; 143if (_helper.Kind == CollectionKind.Dictionary || _helper.Kind == CollectionKind.GenericDictionary) 145_itemContract = _helper.ItemContract; 147_helper.SharedTypeContract = sharedTypeContract; 152internal CollectionKind Kind => _helper.Kind; 154internal Type ItemType => _helper.ItemType; 160get => _itemContract ?? _helper.ItemContract; 165_helper.ItemContract = value; 169internal DataContract? SharedTypeContract => _helper.SharedTypeContract; 173get => _helper.ItemName; 174set => _helper.ItemName = value; 181get => _helper.KeyName; 182set => _helper.KeyName = value; 187get => _helper.ValueName; 188set => _helper.ValueName = value; 220if (_helper.ChildElementNamespace == null && !IsDictionary) 224_helper.ChildElementNamespace = tempChildElementNamespace; 226_childElementNamespace = _helper.ChildElementNamespace; 236get => _helper.IsItemTypeNullable; 237set => _helper.IsItemTypeNullable = value; 242get => _helper.IsConstructorCheckRequired; 243set => _helper.IsConstructorCheckRequired = value; 246internal MethodInfo? GetEnumeratorMethod => _helper.GetEnumeratorMethod; 248internal MethodInfo? AddMethod => _helper.AddMethod; 250internal ConstructorInfo? Constructor => _helper.Constructor; 256get => _helper.KnownDataContracts; 257internal set => _helper.KnownDataContracts = value; 260internal string? InvalidCollectionInSharedContractMessage => _helper.InvalidCollectionInSharedContractMessage; 262internal string? SerializationExceptionMessage => _helper.SerializationExceptionMessage; 264internal string? DeserializationExceptionMessage => _helper.DeserializationExceptionMessage; 268private bool ItemNameSetExplicit => _helper.ItemNameSetExplicit; 283if (_helper.XmlFormatWriterDelegate == null) 287if (_helper.XmlFormatWriterDelegate == null) 291_helper.XmlFormatWriterDelegate = tempDelegate; 295return _helper.XmlFormatWriterDelegate; 312if (_helper.XmlFormatReaderDelegate == null) 316if (_helper.XmlFormatReaderDelegate == null) 320ThrowInvalidDataContractException(_helper.DeserializationExceptionMessage, type: null); 325_helper.XmlFormatReaderDelegate = tempDelegate; 329return _helper.XmlFormatReaderDelegate; 347if (_helper.XmlFormatGetOnlyCollectionReaderDelegate == null) 351if (_helper.XmlFormatGetOnlyCollectionReaderDelegate == null) 360ThrowInvalidDataContractException(_helper.DeserializationExceptionMessage, type: null); 370_helper.XmlFormatGetOnlyCollectionReaderDelegate = tempDelegate; 374return _helper.XmlFormatGetOnlyCollectionReaderDelegate; 384_helper.IncrementCollectionCount(xmlWriter, obj, context); 390return _helper.GetEnumeratorForCollection(obj); 397return _helper.GetCollectionElementType();