Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetTypeStoreItem()

TypeStoreItem System.ComponentModel.DataAnnotations.ValidationAttributeStore.GetTypeStoreItem ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
inlineprivate

Definition at line 178 of file ValidationAttributeStore.cs.

179 {
181 {
183 {
184 AttributeCollection attributes = TypeDescriptor.GetAttributes(type);
185 value = new TypeStoreItem(type, attributes);
187 }
188 return value;
189 }
190 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)

References System.ComponentModel.DataAnnotations.ValidationAttributeStore._typeStoreItems, System.ComponentModel.TypeDescriptor.GetAttributes(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), System.type, and System.value.

Referenced by System.ComponentModel.DataAnnotations.ValidationAttributeStore.GetPropertyDisplayAttribute(), System.ComponentModel.DataAnnotations.ValidationAttributeStore.GetPropertyType(), System.ComponentModel.DataAnnotations.ValidationAttributeStore.GetPropertyValidationAttributes(), System.ComponentModel.DataAnnotations.ValidationAttributeStore.GetTypeDisplayAttribute(), System.ComponentModel.DataAnnotations.ValidationAttributeStore.GetTypeValidationAttributes(), and System.ComponentModel.DataAnnotations.ValidationAttributeStore.IsPropertyContext().