2 writes to IsRequired
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ClassDataContract.cs (2)
865
memberContract.
IsRequired
= memberAttribute.IsRequired;
943
memberContract.
IsRequired
= true;
18 references to IsRequired
System.Private.DataContractSerialization (15)
System\Runtime\Serialization\ClassDataContract.cs (1)
1470
return !dataMembers.Any(dm => dm.
IsRequired
);
System\Runtime\Serialization\DataMember.cs (3)
299
IsRequired
,
319
&&
IsRequired
== dataMember.
IsRequired
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
429
if (members[i].
IsRequired
)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
283
if (member.
IsRequired
)
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
237
if (member.
IsRequired
)
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (1)
148
requiredMembers[memberCount] = members[i].
IsRequired
;
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (1)
171
if (member.
IsRequired
)
System\Runtime\Serialization\SchemaExporter.cs (1)
148
if (!dataMember.
IsRequired
)
System\Runtime\Serialization\SchemaImporter.cs (2)
1107
|| !(key = keyValueContract.Members[0]).
IsRequired
|| !(value = keyValueContract.Members[1]).
IsRequired
)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
428
if (dataMember.
IsRequired
)
482
requiredMembers[memberCount] = members[i].
IsRequired
;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
349
if (member.
IsRequired
)
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
866
if (dataMember.
IsRequired
!= ImportGlobals.DefaultIsRequired)
867
dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(ImportGlobals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.
IsRequired
)));
874
if (GenerateSerializableTypes && !dataMember.
IsRequired
)