2 writes to Members
System.Runtime.Serialization (2)
System\Runtime\Serialization\ClassDataContract.cs (1)
1440
boundClassContract.
Members
= new List<DataMember>(Members.Count);
System\Runtime\Serialization\SchemaImporter.cs (1)
688
dataContract.
Members
= new List<DataMember>();
78 references to Members
System.Runtime.Serialization (78)
System\Runtime\Serialization\ClassDataContract.cs (34)
411
if (
Members
== null)
418
XmlDictionaryString[] childElementNamespaces = new XmlDictionaryString[
Members
.Count + baseChildElementNamespaceCount];
423
for (int i = 0; i < this.
Members
.Count; i++)
425
childElementNamespaces[i + baseChildElementNamespaceCount] = GetChildNamespaceToDeclare(this, this.
Members
[i].MemberType, dictionary);
531
if (this.
Members
!= null)
533
for (int i = 0; i < this.
Members
.Count; i++)
535
if (this.
Members
[i].RequiresMemberAccessForSet())
539
if (this.
Members
[i].MemberInfo is FieldInfo)
545
this.
Members
[i].MemberInfo.Name),
554
this.
Members
[i].MemberInfo.Name),
617
if (this.
Members
!= null)
619
for (int i = 0; i < this.
Members
.Count; i++)
621
if (this.
Members
[i].RequiresMemberAccessForGet())
625
if (this.
Members
[i].MemberInfo is FieldInfo)
631
this.
Members
[i].MemberInfo.Name),
640
this.
Members
[i].MemberInfo.Name),
1033
foreach (DataMember member in currContract.
Members
)
1438
if (
Members
!= null)
1440
boundClassContract.Members = new List<DataMember>(
Members
.Count);
1441
foreach (DataMember member in
Members
)
1442
boundClassContract.
Members
.Add(member.BindGenericParameters(paramContracts, boundContracts));
1468
if (
Members
== null)
1470
if (dataContract.
Members
!= null)
1473
if (!IsEveryDataMemberOptional(dataContract.
Members
))
1477
else if (dataContract.
Members
== null)
1480
if (!IsEveryDataMemberOptional(
Members
))
1485
Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(
Members
.Count);
1487
for (int i = 0; i <
Members
.Count; i++)
1489
membersDictionary.Add(
Members
[i].Name,
Members
[i]);
1492
for (int i = 0; i < dataContract.
Members
.Count; i++)
1496
if (membersDictionary.TryGetValue(dataContract.
Members
[i].Name, out dataMember))
1498
if (dataMember.Equals(dataContract.
Members
[i], checkedContracts))
1510
dataContractMembersList.Add(dataContract.
Members
[i]);
System\Runtime\Serialization\CodeExporter.cs (7)
644
DataMember keyMember = itemContract.
Members
[0];
645
DataMember valueMember = itemContract.
Members
[1];
865
if (classDataContract.
Members
!= null)
867
for (int i = 0; i < classDataContract.
Members
.Count; i++)
869
DataMember dataMember = classDataContract.
Members
[i];
961
if (dataContract.
Members
!= null)
964
foreach (DataMember dataMember in dataContract.
Members
)
System\Runtime\Serialization\DataContractSet.cs (3)
169
if (classDataContract.
Members
!= null)
171
for (int i = 0; i < classDataContract.
Members
.Count; i++)
173
DataMember dataMember = classDataContract.
Members
[i];
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (6)
419
for (int i = 0; i < classContract.
Members
.Count; i++, memberCount++)
421
DataMember dataMember = classContract.
Members
[i];
480
List<DataMember> members = contract.
Members
;
780
DataContract keyDataContract = keyValueDataContract.
Members
[0].MemberTypeContract;
1023
DataMember keyMember = keyValuePairContract.
Members
[0];
1024
DataMember valueMember = keyValuePairContract.
Members
[1];
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (4)
287
ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, classContract.
Members
.Count);
289
for (int i = 0; i < classContract.
Members
.Count; i++, memberCount++)
291
DataMember member = classContract.
Members
[i];
337
childElementIndex += classContract.
Members
.Count;
System\Runtime\Serialization\SchemaExporter.cs (3)
135
for (int i = 0; i < classDataContract.
Members
.Count; i++)
137
DataMember dataMember = classDataContract.
Members
[i];
383
foreach (DataMember dataMember in keyValueContract.
Members
)
System\Runtime\Serialization\SchemaImporter.cs (9)
1013
int prevMemberIndex = dataContract.
Members
.Count - 1;
1016
DataMember prevMember = dataContract.
Members
[prevMemberIndex];
1018
memberOrder = dataContract.
Members
.Count;
1024
memberOrder = dataContract.
Members
.Count;
1031
dataContract.
Members
.Add(dataMember);
1115
if (keyValueContract == null || keyValueContract.
Members
== null || keyValueContract.
Members
.Count != 2
1116
|| !(key = keyValueContract.
Members
[0]).IsRequired || !(value = keyValueContract.
Members
[1]).IsRequired)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (5)
402
for (int i = 0; i < classContract.
Members
.Count; i++, memberCount++)
404
DataMember dataMember = classContract.
Members
[i];
455
List<DataMember> members = contract.
Members
;
874
DataMember keyMember = keyValuePairContract.
Members
[0];
875
DataMember valueMember = keyValuePairContract.
Members
[1];
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
314
ilg.Call(contextArg, XmlFormatGeneratorStatics.IncrementItemCountMethod, classContract.
Members
.Count);
316
for (int i = 0; i < classContract.
Members
.Count; i++, memberCount++)
318
DataMember member = classContract.
Members
[i];
361
childElementIndex += classContract.
Members
.Count;
797
List<DataMember> members = currentContract.
Members
;
System\Runtime\Serialization\XPathQueryGenerator.cs (2)
89
if (contract.
Members
!= null)
91
foreach (DataMember member in contract.
Members
)