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