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