2 writes to Members
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ClassDataContract.cs (1)
1373
boundClassContract.
Members
= new List<DataMember>(Members.Count);
System\Runtime\Serialization\SchemaImporter.cs (1)
680
dataContract.
Members
= new List<DataMember>();
81 references to Members
System.Private.DataContractSerialization (81)
System\Runtime\Serialization\ClassDataContract.cs (36)
76
public override ReadOnlyCollection<DataMember> DataMembers => (
Members
== null) ? ReadOnlyCollection<DataMember>.Empty :
Members
.AsReadOnly();
356
if (
Members
== null)
363
XmlDictionaryString?[] childElementNamespaces = new XmlDictionaryString?[
Members
.Count + baseChildElementNamespaceCount];
368
for (int i = 0; i <
Members
.Count; i++)
370
childElementNamespaces[i + baseChildElementNamespaceCount] = GetChildNamespaceToDeclare(this,
Members
[i].MemberType, dictionary);
471
if (
Members
!= null)
473
for (int i = 0; i <
Members
.Count; i++)
475
if (
Members
[i].RequiresMemberAccessForSet())
479
if (
Members
[i].MemberInfo is FieldInfo)
484
Members
[i].MemberInfo.Name),
492
Members
[i].MemberInfo.Name),
554
if (
Members
!= null)
556
for (int i = 0; i <
Members
.Count; i++)
558
if (
Members
[i].RequiresMemberAccessForGet())
562
if (
Members
[i].MemberInfo is FieldInfo)
567
Members
[i].MemberInfo.Name),
575
Members
[i].MemberInfo.Name),
989
foreach (DataMember member in currContract.
Members
!)
1371
if (
Members
!= null)
1373
boundClassContract.Members = new List<DataMember>(
Members
.Count);
1374
foreach (DataMember member in
Members
)
1375
boundClassContract.
Members
.Add(member.BindGenericParameters(paramContracts, boundContracts));
1404
if (
Members
== null)
1406
if (dataContract.
Members
!= null)
1409
if (!IsEveryDataMemberOptional(dataContract.
Members
))
1413
else if (dataContract.
Members
== null)
1416
if (!IsEveryDataMemberOptional(
Members
))
1421
Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(
Members
.Count);
1423
for (int i = 0; i <
Members
.Count; i++)
1425
membersDictionary.Add(
Members
[i].Name,
Members
[i]);
1428
for (int i = 0; i < dataContract.
Members
.Count; i++)
1431
if (membersDictionary.TryGetValue(dataContract.
Members
[i].Name, out DataMember? dataMember))
1433
if (dataMember.Equals(dataContract.
Members
[i], checkedContracts))
1445
dataContractMembersList.Add(dataContract.
Members
[i]);
System\Runtime\Serialization\DataContractSet.cs (3)
149
if (classDataContract.
Members
!= null)
151
for (int i = 0; i < classDataContract.
Members
.Count; i++)
153
DataMember dataMember = classDataContract.
Members
[i];
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (6)
364
for (int i = 0; i < classContract.
Members
!.Count; i++, memberCount++)
366
DataMember dataMember = classContract.
Members
[i];
426
List<DataMember> members = contract.
Members
!;
741
DataContract keyDataContract = keyValueDataContract.
Members
![0].MemberTypeContract;
995
DataMember keyMember = keyValuePairContract.
Members
![0];
996
DataMember valueMember = keyValuePairContract.
Members
[1];
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
237
int classMemberCount = classContract.
Members
!.Count;
242
DataMember member = classContract.
Members
[i];
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (1)
161
DataContract keyDataContract = keyValueDataContract.
Members
![0].MemberTypeContract;
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (3)
211
context.IncrementItemCount(classContract.
Members
!.Count);
212
for (int i = 0; i < classContract.
Members
.Count; i++, memberCount++)
214
DataMember member = classContract.
Members
[i];
System\Runtime\Serialization\ReflectionReader.cs (2)
215
for (int i = 0; i < classContract.
Members
!.Count; i++, memberCount++)
217
members[childElementIndex + i] = classContract.
Members
[i];
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (1)
145
List<DataMember> members = contract.
Members
!;
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (4)
146
context.IncrementItemCount(classContract.
Members
!.Count);
147
for (int i = 0; i < classContract.
Members
.Count; i++, memberCount++)
149
DataMember member = classContract.
Members
[i];
244
List<DataMember> members = currentContract.
Members
!;
System\Runtime\Serialization\SchemaExporter.cs (3)
129
for (int i = 0; i < classDataContract.
Members
!.Count; i++)
131
DataMember dataMember = classDataContract.
Members
[i];
384
foreach (DataMember dataMember in keyValueContract.
Members
!)
System\Runtime\Serialization\SchemaImporter.cs (10)
997
Debug.Assert(dataContract.
Members
!= null); // This method is only called from ImportClass() after that method has initialized the Members collection.
1000
int prevMemberIndex = dataContract.
Members
.Count - 1;
1003
DataMember prevMember = dataContract.
Members
![prevMemberIndex];
1005
memberOrder = dataContract.
Members
.Count;
1011
memberOrder = dataContract.
Members
.Count;
1018
dataContract.
Members
.Add(dataMember);
1106
if (keyValueContract == null || keyValueContract.
Members
== null || keyValueContract.
Members
.Count != 2
1107
|| !(key = keyValueContract.
Members
[0]).IsRequired || !(value = keyValueContract.
Members
[1]).IsRequired)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (5)
423
for (int i = 0; i < classContract.
Members
!.Count; i++, memberCount++)
425
DataMember dataMember = classContract.
Members
[i];
479
List<DataMember> members = contract.
Members
!;
924
DataMember keyMember = keyValuePairContract.
Members
![0];
925
DataMember valueMember = keyValuePairContract.
Members
[1];
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
307
int classMemberCount = classContract.
Members
!.Count;
312
DataMember member = classContract.
Members
[i];
804
List<DataMember> members = currentContract.
Members
!;
System\Runtime\Serialization\XPathQueryGenerator.cs (2)
95
if (contract.
Members
!= null)
97
foreach (DataMember member in contract.
Members
)