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