2 writes to IsRequired
System.Runtime.Serialization (2)
System\Runtime\Serialization\ClassDataContract.cs (2)
915
memberContract.
IsRequired
= memberAttribute.IsRequired;
991
memberContract.
IsRequired
= true;
15 references to IsRequired
System.Runtime.Serialization (15)
System\Runtime\Serialization\ClassDataContract.cs (1)
1538
if (dataMember.
IsRequired
)
System\Runtime\Serialization\CodeExporter.cs (3)
890
if (dataMember.
IsRequired
!= Globals.DefaultIsRequired)
891
dataMemberAttribute.Arguments.Add(new CodeAttributeArgument(Globals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.
IsRequired
)));
898
if (GenerateSerializableTypes && !dataMember.
IsRequired
)
System\Runtime\Serialization\DataMember.cs (3)
314
this.
IsRequired
,
333
&&
IsRequired
== dataMember.
IsRequired
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (1)
483
if (members[i].
IsRequired
)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
327
if (member.
IsRequired
)
System\Runtime\Serialization\SchemaExporter.cs (1)
154
if (!dataMember.
IsRequired
)
System\Runtime\Serialization\SchemaImporter.cs (2)
1116
|| !(key = keyValueContract.Members[0]).
IsRequired
|| !(value = keyValueContract.Members[1]).
IsRequired
)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
407
if (dataMember.
IsRequired
)
458
requiredMembers[memberCount] = members[i].
IsRequired
;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
350
if (member.
IsRequired
)