32 writes to IsRequired
FormatterWebSite (3)
Models\BookModelWithNoValidation.cs (1)
16[DataMember(IsRequired = true)]
Models\User.cs (2)
12[DataMember(IsRequired = true)] 16[DataMember(IsRequired = true)]
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (1)
1256[DataMember(IsRequired = true)]
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (1)
1431[DataMember(IsRequired = true)]
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (11)
DataMemberRequiredBindingMetadataProviderTest.cs (7)
20new DataMemberAttribute() { IsRequired = true, } 46new DataMemberAttribute() { IsRequired = false, } 74new DataMemberAttribute() { IsRequired = true, } 122new DataMemberAttribute() { IsRequired = true, } 148[DataMember(IsRequired = true)] 155[DataMember(IsRequired = false)] 161[DataMember(IsRequired = true)]
ModelMetadataProviderTest.cs (4)
900[DataMember(IsRequired = true)] 907[DataMember(IsRequired = false)] 910[DataMember(IsRequired = false)] 916[DataMember(IsRequired = true)]
Microsoft.Build.Tasks.Core (4)
AssemblyFolderItem.cs (4)
15[DataMember(IsRequired = false, Order = 1)] 18[DataMember(IsRequired = true, Order = 2)] 21[DataMember(IsRequired = true, Order = 3)] 24[DataMember(IsRequired = false, Order = 4)]
Microsoft.Build.Utilities.Core (4)
AssemblyFolderItem.cs (4)
15[DataMember(IsRequired = false, Order = 1)] 18[DataMember(IsRequired = true, Order = 2)] 21[DataMember(IsRequired = true, Order = 3)] 24[DataMember(IsRequired = false, Order = 4)]
Microsoft.CodeAnalysis.LanguageServer (4)
BrokeredServices\Services\Definitions\ProjectInitializationCompleteState.cs (4)
14[DataMember(IsRequired = true, EmitDefaultValue = false, Name = "environmentStateVersion")] 17[DataMember(IsRequired = false, EmitDefaultValue = true, Name = "projectsLoadedCount")] 20[DataMember(IsRequired = false, EmitDefaultValue = true, Name = "projectsFailedCount")] 23[DataMember(IsRequired = true, EmitDefaultValue = false, Name = "stateUpdateVersion")]
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\CollectionDataContract.cs (2)
34[DataMember(IsRequired = true)] 37[DataMember(IsRequired = true)]
System\Runtime\Serialization\DateTimeOffsetAdapter.cs (2)
24[DataMember(Name = "DateTime", IsRequired = true)] 31[DataMember(Name = "OffsetMinutes", IsRequired = true)]
6 references to IsRequired
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
238propertyInfo.Required = dataMemberAttribute.IsRequired;
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
238propertyInfo.Required = dataMemberAttribute.IsRequired;
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
ModelBinding\DataMemberRequiredBindingMetadataProvider.cs (2)
11/// An <see cref="IBindingMetadataProvider"/> for <see cref="DataMemberAttribute.IsRequired"/>. 36if (dataMemberAttribute == null || !dataMemberAttribute.IsRequired)
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\ClassDataContract.cs (2)
865memberContract.IsRequired = memberAttribute.IsRequired; 866if (memberAttribute.IsRequired && IsReference)