9 instantiations of DataMember
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\ClassDataContract.cs (3)
828DataMember memberContract = new DataMember(member); 893DataMember memberContract = new DataMember(member); 930DataMember memberContract = new DataMember(member);
System\Runtime\Serialization\DataMember.cs (1)
296DataMember boundDataMember = new DataMember(memberTypeContract,
System\Runtime\Serialization\EnumDataContract.cs (2)
236DataMember memberContract = new DataMember(field); 259DataMember memberContract = new DataMember(field) { Name = field.Name };
System\Runtime\Serialization\SchemaImporter.cs (3)
1006DataMember currentMember = new DataMember(memberTypeContract, memberName, memberIsNullable, memberIsRequired, memberEmitDefaultValue, memberOrder); 1013DataMember dataMember = new DataMember(memberTypeContract, memberName, memberIsNullable, memberIsRequired, memberEmitDefaultValue, memberOrder); 1216DataMember dataMember = new DataMember(Globals.SchemaMemberInfoPlaceholder) { Name = enumFacet.Value, Order = enumValue };
110 references to DataMember
System.Private.DataContractSerialization (105)
System\Runtime\Serialization\ClassDataContract.cs (34)
70internal List<DataMember>? Members 76public override ReadOnlyCollection<DataMember> DataMembers => (Members == null) ? ReadOnlyCollection<DataMember>.Empty : Members.AsReadOnly(); 256internal static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable) 258if (memberNamesTable.TryGetValue(memberContract.Name, out DataMember? existingMemberContract)) 592private List<DataMember>? _members; 625_members = new List<DataMember>(); 803List<DataMember> tempMembers = new List<DataMember>(); 804Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 828DataMember memberContract = new DataMember(member); 893DataMember memberContract = new DataMember(member); 930DataMember memberContract = new DataMember(member); 962private static bool SetIfGetOnlyCollection(DataMember memberContract, bool skipIfReadOnlyContract) 973private void SetIfMembersHaveConflict(List<DataMember> members) 980foreach (DataMember member in members) 989foreach (DataMember member in currContract.Members!) 1155internal List<DataMember>? Members 1282internal Member(DataMember member, string ns, int baseTypeIndex) 1288internal readonly DataMember _member; 1373boundClassContract.Members = new List<DataMember>(Members.Count); 1374foreach (DataMember member in Members) 1421Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(Members.Count); 1422List<DataMember> dataContractMembersList = new List<DataMember>(); 1431if (membersDictionary.TryGetValue(dataContract.Members[i].Name, out DataMember? dataMember)) 1468private static bool IsEveryDataMemberOptional(IEnumerable<DataMember> dataMembers) 1478internal sealed class DataMemberComparer : IComparer<DataMember> 1480public int Compare(DataMember? x, DataMember? y)
System\Runtime\Serialization\DataContract.cs (2)
272public virtual ReadOnlyCollection<DataMember> DataMembers => ReadOnlyCollection<DataMember>.Empty;
System\Runtime\Serialization\DataContractSet.cs (2)
153DataMember dataMember = classDataContract.Members[i]; 263internal DataContract GetMemberTypeDataContract(DataMember dataMember)
System\Runtime\Serialization\DataMember.cs (6)
85internal DataMember? ConflictingMember 109private DataMember? _conflictingMember; 217internal DataMember? ConflictingMember 293internal DataMember BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null) 296DataMember boundDataMember = new DataMember(memberTypeContract, 312if (other is DataMember dataMember)
System\Runtime\Serialization\EnumDataContract.cs (11)
50internal List<DataMember> Members 56public override ReadOnlyCollection<DataMember> DataMembers => (Members == null) ? ReadOnlyCollection<DataMember>.Empty : Members.AsReadOnly(); 82private List<DataMember> _members; 179internal List<DataMember> Members 219Dictionary<string, DataMember> memberValuesTable = new Dictionary<string, DataMember>(); 220List<DataMember> tempMembers = new List<DataMember>(fields.Length); 236DataMember memberContract = new DataMember(field); 259DataMember memberContract = new DataMember(field) { Name = field.Name };
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (4)
366DataMember dataMember = classContract.Members[i]; 426List<DataMember> members = contract.Members!; 995DataMember keyMember = keyValuePairContract.Members![0]; 996DataMember valueMember = keyValuePairContract.Members[1];
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
242DataMember member = classContract.Members[i]; 297private LocalBuilder LoadMemberValue(DataMember member)
System\Runtime\Serialization\Json\ReflectionJsonFormatReader.cs (2)
70DataMember[] members = new DataMember[memberCount];
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
214DataMember member = classContract.Members[i];
System\Runtime\Serialization\ReflectionClassWriter.cs (1)
113protected static object? ReflectionGetMemberValue(object obj, DataMember dataMember)
System\Runtime\Serialization\ReflectionReader.cs (6)
211protected static int ReflectionGetMembers(ClassDataContract classContract, DataMember[] members) 225protected void ReflectionReadMember(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, ClassDataContract classContract, ref object obj, int memberIndex, DataMember[] members) 227DataMember dataMember = members[memberIndex]; 371private static object? ReflectionGetMemberValue(object obj, DataMember dataMember) 376private static void ReflectionSetMemberValue(ref object obj, object? memberValue, DataMember dataMember) 383private object? ReflectionReadValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, DataMember dataMember, string ns)
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (3)
72DataMember[] members = new DataMember[memberCount]; 145List<DataMember> members = contract.Members!;
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (4)
149DataMember member = classContract.Members[i]; 230private static bool CheckIfMemberHasConflict(DataMember member, ClassDataContract classContract, ClassDataContract derivedMostClassContract) 244List<DataMember> members = currentContract.Members!; 257private static bool CheckIfConflictingMembersHaveDifferentTypes(DataMember member)
System\Runtime\Serialization\SchemaExporter.cs (5)
131DataMember dataMember = classDataContract.Members[i]; 201private static bool CheckIfMemberHasConflict(DataMember dataMember) 206DataMember? conflictingMember = dataMember.ConflictingMember; 217private XmlElement? ExportEmitDefaultValue(DataMember dataMember) 384foreach (DataMember dataMember in keyValueContract.Members!)
System\Runtime\Serialization\SchemaImporter.cs (8)
680dataContract.Members = new List<DataMember>(); 1003DataMember prevMember = dataContract.Members![prevMemberIndex]; 1006DataMember currentMember = new DataMember(memberTypeContract, memberName, memberIsNullable, memberIsRequired, memberEmitDefaultValue, memberOrder); 1013DataMember dataMember = new DataMember(memberTypeContract, memberName, memberIsNullable, memberIsRequired, memberEmitDefaultValue, memberOrder); 1105DataMember key = null!, value = null!; // Set in the following || conditional chain. If the chain triggers before setting these, an exception is thrown. 1135private static GenericInfo GetGenericInfoForDataMember(DataMember dataMember) 1203dataContract.Members = new List<DataMember>(); 1216DataMember dataMember = new DataMember(Globals.SchemaMemberInfoPlaceholder) { Name = enumFacet.Value, Order = enumValue };
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (4)
425DataMember dataMember = classContract.Members[i]; 479List<DataMember> members = contract.Members!; 924DataMember keyMember = keyValuePairContract.Members![0]; 925DataMember valueMember = keyValuePairContract.Members[1];
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (5)
312DataMember member = classContract.Members[i]; 363private LocalBuilder LoadMemberValue(DataMember member) 790private static bool CheckIfMemberHasConflict(DataMember member, ClassDataContract classContract, ClassDataContract derivedMostClassContract) 804List<DataMember> members = currentContract.Members!; 817private static bool CheckIfConflictingMembersHaveDifferentTypes(DataMember member)
System\Runtime\Serialization\XPathQueryGenerator.cs (5)
75foreach (DataMember member in GetDataMembers(contract)) 86private static IEnumerable<DataMember> GetDataMembers(ClassDataContract contract) 90foreach (DataMember baseClassMember in GetDataMembers(contract.BaseClassContract)) 97foreach (DataMember member in contract.Members) 123public void WriteChildToContext(DataMember contextMember, string prefix)
System.Runtime.Serialization.Schema (4)
System\Runtime\Serialization\Schema\CodeExporter.cs (4)
664DataMember keyMember = itemContract.DataMembers[0]; 665DataMember valueMember = itemContract.DataMembers[1]; 844DataMember dataMember = classDataContract.DataMembers[i]; 942foreach (DataMember dataMember in classDataContract.DataMembers)
System.Runtime.Serialization.Xml (1)
artifacts\obj\System.Runtime.Serialization.Xml\Debug\net10.0\System.Runtime.Serialization.Xml.Forwards.cs (1)
6[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Serialization.DataContracts.DataMember))]