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;
143
if (
_helper
.Kind == CollectionKind.Dictionary ||
_helper
.Kind == CollectionKind.GenericDictionary)
145
_itemContract =
_helper
.ItemContract;
147
_helper
.SharedTypeContract = sharedTypeContract;
152
internal CollectionKind Kind =>
_helper
.Kind;
154
internal Type ItemType =>
_helper
.ItemType;
160
get => _itemContract ??
_helper
.ItemContract;
165
_helper
.ItemContract = value;
169
internal DataContract? SharedTypeContract =>
_helper
.SharedTypeContract;
173
get =>
_helper
.ItemName;
174
set =>
_helper
.ItemName = value;
181
get =>
_helper
.KeyName;
182
set =>
_helper
.KeyName = value;
187
get =>
_helper
.ValueName;
188
set =>
_helper
.ValueName = value;
220
if (
_helper
.ChildElementNamespace == null && !IsDictionary)
224
_helper
.ChildElementNamespace = tempChildElementNamespace;
226
_childElementNamespace =
_helper
.ChildElementNamespace;
236
get =>
_helper
.IsItemTypeNullable;
237
set =>
_helper
.IsItemTypeNullable = value;
242
get =>
_helper
.IsConstructorCheckRequired;
243
set =>
_helper
.IsConstructorCheckRequired = value;
246
internal MethodInfo? GetEnumeratorMethod =>
_helper
.GetEnumeratorMethod;
248
internal MethodInfo? AddMethod =>
_helper
.AddMethod;
250
internal ConstructorInfo? Constructor =>
_helper
.Constructor;
256
get =>
_helper
.KnownDataContracts;
257
internal set =>
_helper
.KnownDataContracts = value;
260
internal string? InvalidCollectionInSharedContractMessage =>
_helper
.InvalidCollectionInSharedContractMessage;
262
internal string? SerializationExceptionMessage =>
_helper
.SerializationExceptionMessage;
264
internal string? DeserializationExceptionMessage =>
_helper
.DeserializationExceptionMessage;
268
private bool ItemNameSetExplicit =>
_helper
.ItemNameSetExplicit;
283
if (
_helper
.XmlFormatWriterDelegate == null)
287
if (
_helper
.XmlFormatWriterDelegate == null)
291
_helper
.XmlFormatWriterDelegate = tempDelegate;
295
return
_helper
.XmlFormatWriterDelegate;
312
if (
_helper
.XmlFormatReaderDelegate == null)
316
if (
_helper
.XmlFormatReaderDelegate == null)
320
ThrowInvalidDataContractException(
_helper
.DeserializationExceptionMessage, type: null);
325
_helper
.XmlFormatReaderDelegate = tempDelegate;
329
return
_helper
.XmlFormatReaderDelegate;
347
if (
_helper
.XmlFormatGetOnlyCollectionReaderDelegate == null)
351
if (
_helper
.XmlFormatGetOnlyCollectionReaderDelegate == null)
360
ThrowInvalidDataContractException(
_helper
.DeserializationExceptionMessage, type: null);
370
_helper
.XmlFormatGetOnlyCollectionReaderDelegate = tempDelegate;
374
return
_helper
.XmlFormatGetOnlyCollectionReaderDelegate;
384
_helper
.IncrementCollectionCount(xmlWriter, obj, context);
390
return
_helper
.GetEnumeratorForCollection(obj);
397
return
_helper
.GetCollectionElementType();