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();
17 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 (7)
ModelBinding\Metadata\ModelAttributesTest.cs (7)
142
Assert.Single(attributes.
TypeAttributes
.OfType<ClassValidator>());
174
var attribute = Assert.Single(attributes.
TypeAttributes
);
192
Assert.Equal(attributes.Attributes, attributes.
TypeAttributes
);
217
attributes.
TypeAttributes
.Take(1),
238
Assert.IsType<ClassValidator>(Assert.Single(attributes.
TypeAttributes
));
261
attributes.
TypeAttributes
,
285
attributes.
TypeAttributes
,
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (2)
ModelMetadataProviderTest.cs (2)
1067
_attributes.Concat(entry.ModelAttributes.
TypeAttributes
).ToArray(),
1083
e.ModelAttributes.
TypeAttributes
,