13 references to GetAttribute
System.Windows.Forms (9)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
37_dispid = baseDescriptor.GetAttribute<DispIdAttribute>(); 347if (_baseDescriptor.GetAttribute<ComAliasNameAttribute>() is not null)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
2102if (props[i].GetAttribute<ParenthesizePropertyNameAttribute>()?.NeedParenthesis ?? false)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (3)
144bool match = pivotProperty.GetAttribute<MergablePropertyAttribute>()?.IsDefaultAttribute() ?? false; 160if (property.GetAttribute<MergablePropertyAttribute>()?.IsDefaultAttribute() ?? false) 181match = property.GetAttribute<MergablePropertyAttribute>()?.IsDefaultAttribute() ?? false;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
49=> PropertyDescriptor.GetAttribute<MergablePropertyAttribute>()?.IsDefaultAttribute() ?? true; 140_parensAroundName = PropertyDescriptor.GetAttribute<ParenthesizePropertyNameAttribute>()?.NeedParenthesis ?? false; 608var refresh = PropertyDescriptor.GetAttribute<RefreshPropertiesAttribute>();
System.Windows.Forms.Design (4)
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageCultureInfoConverter.cs (1)
34ExtenderProvidedPropertyAttribute? attr = context?.PropertyDescriptor?.GetAttribute<ExtenderProvidedPropertyAttribute>();
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (3)
96ExtenderProvidedPropertyAttribute? exAttr = propertyToSerialize.GetAttribute<ExtenderProvidedPropertyAttribute>(); 156ExtenderProvidedPropertyAttribute exAttr = property.GetAttribute<ExtenderProvidedPropertyAttribute>()!; 226ExtenderProvidedPropertyAttribute exAttr = property.GetAttribute<ExtenderProvidedPropertyAttribute>()!;