1 override of
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MergedAttributeCollection.cs (1)
22
public override Attribute?
this
[[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor | DynamicallyAccessedMemberTypes.PublicFields)] Type attributeType] => GetCommonAttribute(attributeType);
53 references to
PresentationFramework (10)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
127
ConstructorArgumentAttribute constructorArgumentAttribute = descriptor.Attributes
[
typeof(ConstructorArgumentAttribute)] as ConstructorArgumentAttribute;
System\Windows\Markup\Primitives\MarkupWriter.cs (8)
480
ContentPropertyAttribute cpa = item.Attributes
[
typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
481
XmlLangPropertyAttribute xlpa = item.Attributes
[
typeof(XmlLangPropertyAttribute)] as XmlLangPropertyAttribute;
482
UidPropertyAttribute upa = item.Attributes
[
typeof(UidPropertyAttribute)] as UidPropertyAttribute;
544
if (property.Attributes
[
typeof(DesignerSerializationOptionsAttribute)] != null)
546
DesignerSerializationOptionsAttribute option = property.Attributes
[
typeof(DesignerSerializationOptionsAttribute)] as DesignerSerializationOptionsAttribute;
1084
if (attributes
[
typeof(ContentWrapperAttribute)] == null)
1103
ContentPropertyAttribute cpa = item.Attributes
[
typeof(ContentPropertyAttribute)] as ContentPropertyAttribute;
1232
TrimSurroundingWhitespaceAttribute attribute = item.Attributes
[
typeof(TrimSurroundingWhitespaceAttribute)] as TrimSurroundingWhitespaceAttribute;
System\Windows\Markup\XamlTypeMapper.cs (1)
1833
XmlLangPropertyAttribute xlpa = attributes
[
typeof(XmlLangPropertyAttribute)] as XmlLangPropertyAttribute;
System.ComponentModel.TypeConverter (23)
System\ComponentModel\AttributeCollection.cs (1)
212
Attribute? attr = this
[
attribute.GetType()];
System\ComponentModel\ExtendedPropertyDescriptor.cs (3)
49
ExtenderProvidedPropertyAttribute? attr = extender.Attributes
[
typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
78
public override bool IsReadOnly => Attributes
[
typeof(ReadOnlyAttribute)]!.Equals(ReadOnlyAttribute.Yes);
96
if (!(Attributes
[
typeof(DisplayNameAttribute)] is DisplayNameAttribute displayNameAttr) || displayNameAttr.IsDefaultAttribute())
System\ComponentModel\MemberDescriptor.cs (5)
168
public virtual string Category => _category ??= ((CategoryAttribute)Attributes
[
typeof(CategoryAttribute)]!).Category;
173
public virtual string Description => _description ??= ((DescriptionAttribute)Attributes
[
typeof(DescriptionAttribute)]!).Description;
179
public virtual bool IsBrowsable => ((BrowsableAttribute)Attributes
[
typeof(BrowsableAttribute)]!).Browsable;
195
public virtual bool DesignTimeOnly => (DesignOnlyAttribute.Yes.Equals(Attributes
[
typeof(DesignOnlyAttribute)]));
204
if (!(Attributes
[
typeof(DisplayNameAttribute)] is DisplayNameAttribute displayNameAttr) || displayNameAttr.IsDefaultAttribute())
System\ComponentModel\PropertyDescriptor.cs (4)
77
TypeConverterAttribute attr = (TypeConverterAttribute)attrs
[
typeof(TypeConverterAttribute)]!;
106
TypeConverterAttribute attr = (TypeConverterAttribute)attrs
[
typeof(TypeConverterAttribute)]!;
139
public virtual bool IsLocalizable => (LocalizableAttribute.Yes.Equals(Attributes
[
typeof(LocalizableAttribute)]));
155
DesignerSerializationVisibilityAttribute attr = (DesignerSerializationVisibilityAttribute)Attributes
[
typeof(DesignerSerializationVisibilityAttribute)]!;
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
228
Attribute? a = Attributes
[
typeof(AmbientValueAttribute)];
297
Attribute? a = Attributes
[
typeof(DefaultValueAttribute)];
368
public override bool IsReadOnly => SetMethodValue == null || ((ReadOnlyAttribute)Attributes
[
typeof(ReadOnlyAttribute)]!).IsReadOnly;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
609
ExtenderProvidedPropertyAttribute? eppa = prop.Attributes
[
typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (2)
262
DefaultEventAttribute? attr = (DefaultEventAttribute?)attributes
[
typeof(DefaultEventAttribute)];
295
DefaultPropertyAttribute? attr = (DefaultPropertyAttribute?)attributes
[
typeof(DefaultPropertyAttribute)];
System\ComponentModel\TypeConverter.cs (2)
387
DefaultValueAttribute? attr = (DefaultValueAttribute?)Attributes
[
typeof(DefaultValueAttribute)];
401
DefaultValueAttribute? attr = (DefaultValueAttribute?)Attributes
[
typeof(DefaultValueAttribute)];
System\ComponentModel\TypeDescriptor.cs (2)
1282
ExtenderProvidedPropertyAttribute? exAttr = member.Attributes
[
typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
2732
Attribute? memberAttribute = member.Attributes
[
attribute.GetType()];
System.Data.Common (1)
System\Data\Common\DbConnectionStringBuilder.cs (1)
567
Attribute? attr = property.Attributes
[
attribute.GetType()];
System.Windows.Forms (4)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (1)
87
BOOL hide = sender.Attributes
[
typeof(BrowsableAttribute)] is Attribute browsableAttribute
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
351
_readOnly |= Attributes
[
typeof(ReadOnlyAttribute)]?.Equals(ReadOnlyAttribute.Yes) ?? false;
487
if (Attributes
[
typeof(TypeConverterAttribute)] is TypeConverterAttribute attribute)
525
if (Attributes
[
typeof(EditorAttribute)] is EditorAttribute attribute)
System.Windows.Forms.Design (11)
System\ComponentModel\Design\ComponentDesigner.cs (1)
420
if (Equals(prop.Attributes
[
typeof(DesignOnlyAttribute)], DesignOnlyAttribute.Yes))
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
65
public override bool IsReadOnly => Attributes
[
typeof(ReadOnlyAttribute)]!.Equals(ReadOnlyAttribute.Yes);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
117
public override bool IsReadOnly => _propertyDescriptor.IsReadOnly || Equals(Attributes
[
typeof(ReadOnlyAttribute)], ReadOnlyAttribute.Yes);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (1)
43
if (!attributes
[
typeof(InheritanceAttribute)]!.Equals(InheritanceAttribute.NotInherited))
System\ComponentModel\Design\Serialization\LocalizationCodeDomSerializer.cs (1)
102
ExtenderProvidedPropertyAttribute? attribute = descriptor.Attributes
[
typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;
System\Windows\Forms\Design\ControlDesigner.cs (2)
950
DockingAttribute? dockingAttribute = (DockingAttribute?)attributes
[
typeof(DockingAttribute)];
1175
DockingAttribute? dockingAttribute = (DockingAttribute?)attributes
[
typeof(DockingAttribute)];
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1506
ListBindableAttribute? listBindable = property.Attributes
[
typeof(ListBindableAttribute)] as ListBindableAttribute;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
971
var sizeAttr = (DefaultValueAttribute)prop.Attributes
[
typeof(DefaultValueAttribute)];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1414
DesignerSerializationVisibilityAttribute dsv = member.Attributes
[
typeof(DesignerSerializationVisibilityAttribute)] as DesignerSerializationVisibilityAttribute;
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
572
if (getProperty.Attributes
[
typeof(BrowsableAttribute)] is BrowsableAttribute attribute)
System.Windows.Forms.Primitives (2)
System\ComponentModel\MemberDescriptorExtensions.cs (2)
13
attribute = descriptor?.Attributes
[
typeof(T)] as T;
20
=> descriptor?.Attributes
[
typeof(T)] as T;
System.Xaml (2)
System\Windows\Markup\ValueSerializer.cs (2)
117
if (attributes
[
typeof(ValueSerializerAttribute)] is ValueSerializerAttribute attribute)
167
if (descriptor.Attributes
[
typeof(ValueSerializerAttribute)] is ValueSerializerAttribute serializerAttribute)