3 writes to TypeAttributes
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Metadata\ModelAttributes.cs (3)
53
TypeAttributes
= typeAttributes.ToArray();
62
TypeAttributes
= typeAttributes.ToArray();
67
Attributes =
TypeAttributes
= typeAttributes.ToArray();
20 references to TypeAttributes
Microsoft.AspNetCore.Mvc.Core (8)
ModelBinding\Metadata\BindingMetadataProviderContext.cs (1)
28
TypeAttributes = attributes.
TypeAttributes
;
ModelBinding\Metadata\DisplayMetadataProviderContext.cs (1)
27
TypeAttributes = attributes.
TypeAttributes
;
ModelBinding\Metadata\ModelAttributes.cs (5)
54
Attributes = PropertyAttributes.Concat(
TypeAttributes
).ToArray();
63
Attributes = ParameterAttributes.Concat(
TypeAttributes
).ToArray();
97
/// <see cref="
TypeAttributes
"/> contains attributes retrieved from <see cref="PropertyInfo.PropertyType"/>.
185
var typeAttributes = GetAttributesForType(parameterInfo.ParameterType).
TypeAttributes
!;
209
var typeAttributes = GetAttributesForType(modelType).
TypeAttributes
!;
ModelBinding\Metadata\ValidationMetadataProviderContext.cs (1)
28
TypeAttributes = attributes.
TypeAttributes
;
Microsoft.AspNetCore.Mvc.Core.Test (10)
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (2)
218
Assert.NotEmpty(defaultMetadata.Attributes.
TypeAttributes
);
221
Assert.Equal(defaultMetadata.Attributes.
TypeAttributes
, defaultMetadata.Attributes.Attributes);
ModelBinding\Metadata\ModelAttributesTest.cs (8)
142
Assert.Single(attributes.
TypeAttributes
.OfType<ClassValidator>());
174
var attribute = Assert.Single(attributes.
TypeAttributes
);
193
Assert.NotEmpty(attributes.
TypeAttributes
);
196
Assert.Equal(attributes.
TypeAttributes
, attributes.Attributes);
220
Assert.Contains(attributes.
TypeAttributes
, attr => attr is SerializableAttribute);
240
Assert.IsType<ClassValidator>(Assert.Single(attributes.
TypeAttributes
));
263
attributes.
TypeAttributes
,
287
attributes.
TypeAttributes
,
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
ModelMetadataProviderTest.cs (2)
1067
_attributes.Concat(entry.ModelAttributes.
TypeAttributes
).ToArray(),
1083
e.ModelAttributes.
TypeAttributes
,