971 references to TypeDescriptor
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
156return TypeDescriptor.GetConverter(type);
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
1845var typeConverter = TypeDescriptor.GetConverter(typeof(T)); 2060var typeConverter = TypeDescriptor.GetConverter(typeof(T));
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
777IsConvertibleType = TypeDescriptor.GetConverter(ModelType).CanConvertFrom(typeof(string));
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
30_typeConverter = TypeDescriptor.GetConverter(type);
ModelBinding\ModelBindingHelper.cs (2)
692var converter = TypeDescriptor.GetConverter(destinationType); 696converter = TypeDescriptor.GetConverter(value.GetType());
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1000TypeConverter converter = TypeDescriptor.GetConverter(type);
Microsoft.Extensions.Identity.Stores (2)
RoleStoreBase.cs (1)
130return (TKey?)TypeDescriptor.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
UserStoreBase.cs (1)
231return (TKey?)TypeDescriptor.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
337Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(DiskSpaceExhaustedOption)) 406Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(LogFileLocation)) 432Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(LogFileCreationScheduleOption))
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
XML\XmlPersistence.cs (1)
641TypeConverter convert = TypeDescriptor.GetConverter(valueType);
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
TestObject.cs (2)
269TypeConverter converter = TypeDescriptor.GetConverter(valueType); 315TypeConverter converter = TypeDescriptor.GetConverter(valueType);
netstandard (1)
netstandard.cs (1)
422[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.TypeDescriptor))]
PresentationBuildTasks (2)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2537TypeConverter boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
428TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
PresentationCore (19)
MS\Internal\FontFace\CompositeFontParser.cs (1)
165_doubleTypeConverter = TypeDescriptor.GetConverter(typeof(double));
System\Windows\Duration.cs (2)
483return HasTimeSpan ? TypeDescriptor.GetConverter(_timeSpan).ConvertToString(_timeSpan) : ToStringInvariant(); 487/// This method does not use the current <see cref="System.TimeSpan"/>'s <see cref="TypeDescriptor"/> for retrieving the
System\Windows\Input\Command\KeyGestureValueSerializer.cs (2)
58TypeConverter converter = TypeDescriptor.GetConverter(typeof(KeyGesture)); 73TypeConverter converter = TypeDescriptor.GetConverter(typeof(KeyGesture));
System\Windows\Input\Command\MouseActionValueSerializer.cs (2)
51TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseAction)); 66TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseAction));
System\Windows\Input\Command\MouseGestureConverter.cs (4)
74TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction)); 85TypeConverter modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys)); 153TypeConverter modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys)); 162TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction));
System\Windows\Input\Command\MouseGestureValueSerializer.cs (2)
63TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseGesture)); 78TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseGesture));
System\Windows\Media\Animation\KeyTimeConverter.cs (4)
86double doubleValue = (double)TypeDescriptor.GetConverter( 107TimeSpan timeSpanValue = (TimeSpan)TypeDescriptor.GetConverter( 182string returnValue = (string)TypeDescriptor.GetConverter( 193return TypeDescriptor.GetConverter(
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (2)
84double doubleValue = (double)TypeDescriptor.GetConverter(typeof(double)).ConvertFrom(td, cultureInfo, stringDoubleValue); 93TimeSpan timeSpanValue = (TimeSpan)TypeDescriptor.GetConverter(typeof(TimeSpan)).ConvertFrom(td, cultureInfo, stringValue);
PresentationFramework (30)
MS\Internal\Data\DefaultValueConverter.cs (1)
185typeConverter = TypeDescriptor.GetConverter(type);
MS\Internal\Data\PropertyPathWorker.cs (2)
1383TypeConverter tc = TypeDescriptor.GetConverter(paramType); 1466PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(item);
MS\Internal\Data\ValueTable.cs (2)
218pd = TypeDescriptor.GetProperties(item)[name]; 222pd = TypeDescriptor.GetProperties(item.GetType())[name];
System\Windows\Controls\ContentPresenter.cs (3)
1017TypeConverter tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content)); 1119TypeConverter tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content)); 1188(tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(item))) != null &&
System\Windows\Data\BindingListCollectionView.cs (1)
2187pdc = TypeDescriptor.GetProperties(itemType);
System\Windows\Data\CollectionView.cs (2)
1451properties = TypeDescriptor.GetProperties(itemType); 1464properties = TypeDescriptor.GetProperties(item);
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
72System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType);
System\Windows\Documents\TextRange.cs (1)
790System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(formattingProperty.PropertyType);
System\Windows\Documents\TextRangeSerialization.cs (1)
1125System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType);
System\Windows\Markup\BamlReader.cs (1)
1075TypeConverter converter = TypeDescriptor.GetConverter(value.GetType());
System\Windows\Markup\BamlRecords.cs (1)
2537TypeConverter boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
System\Windows\Markup\ParserContext.cs (2)
98TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(XmlSpace)); 428TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
System\Windows\Markup\Primitives\ElementMarkupObject.cs (5)
95foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(_instance)) 160get { return TypeDescriptor.GetAttributes(ObjectType); } 355TypeConverter converter = TypeDescriptor.GetConverter(instance); 802TypeConverter converter = TypeDescriptor.GetConverter(value); 900TypeConverter converter = TypeDescriptor.GetConverter(value);
System\Windows\Markup\Primitives\FrameworkElementFactoryMarkupObject.cs (1)
37return TypeDescriptor.GetAttributes(ObjectType);
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1083AttributeCollection attributes = TypeDescriptor.GetAttributes(type);
System\Windows\Markup\XamlTypeMapper.cs (1)
1829AttributeCollection attributes = TypeDescriptor.GetAttributes(typeAndSerializer.ObjectType);
System\Windows\PropertyPath.cs (3)
599accessor = TypeDescriptor.GetProperties(item)[propertyName]; 620accessor = TypeDescriptor.GetProperties(item)[propertyName]; 776TypeConverter tc = TypeDescriptor.GetConverter(type);
System\Windows\PropertyPathConverter.cs (1)
263TypeConverter converter = TypeDescriptor.GetConverter(type);
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
75PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(list[0]);
PresentationFramework-SystemXmlLinq (1)
SystemXmlLinqExtension.cs (1)
21PropertyDescriptorCollection pdc = TypeDescriptor.GetProperties(xelement);
ReachFramework (8)
Serialization\Manager\MetroSerializationManager.cs (2)
153return TypeDescriptor.GetConverter(serializedObject.GetType()); 169return TypeDescriptor.GetConverter(serializedObjectType);
Serialization\Manager\ReachDocumentPageSerializer.cs (1)
197writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (1)
281writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\ReachSerializationUtils.cs (3)
608TypeDescriptor.GetConverter(size.Width).ConvertToInvariantString(size.Width)); 610TypeDescriptor.GetConverter(size.Height).ConvertToInvariantString(size.Height)); 1007writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
Serialization\Manager\XpsOMDocumentPageSerializer.cs (1)
228writer.WriteAttributeString(name, TypeDescriptor.GetConverter(value).ConvertToInvariantString(value));
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
408[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.TypeDescriptor))]
System.CodeDom (1)
System\CodeDom\Compiler\CodeDomProvider.cs (1)
128public virtual TypeConverter GetConverter(Type type) => TypeDescriptor.GetConverter(type);
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptionProvider.cs (1)
32: base(TypeDescriptor.GetProvider(type))
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
87Attribute[] newAttributes = TypeDescriptor.GetAttributes(AssociatedMetadataType).OfType<Attribute>().ToArray();
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
260TypeDescriptor.GetConverter(OperandType);
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (3)
128AttributeCollection attributes = TypeDescriptor.GetAttributes(type); 215var properties = TypeDescriptor.GetProperties(_type); 244AttributeCollection typeAttributes = TypeDescriptor.GetAttributes(propertyDescriptor.PropertyType);
System\ComponentModel\DataAnnotations\Validator.cs (1)
519var properties = TypeDescriptor.GetProperties(instance.GetType());
System.ComponentModel.TypeConverter (183)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (2)
16public XTypeDescriptionProvider() : base(TypeDescriptor.GetProvider(typeof(T))) 20public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, object? instance)
System\ComponentModel\AmbientValueAttribute.cs (3)
28public AmbientValueAttribute([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, string value) 45static TypeConverter TypeDescriptorGetConverter([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type) => TypeDescriptor.GetConverter(type);
System\ComponentModel\AttributeCollection.cs (1)
260Type reflect = TypeDescriptor.GetReflectionType(attributeType);
System\ComponentModel\BindingList.cs (2)
15public class BindingList<[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] T> : 518_itemTypeProperties = TypeDescriptor.GetProperties(typeof(T));
System\ComponentModel\ComponentConverter.cs (1)
28return TypeDescriptor.GetProperties(value, attributes);
System\ComponentModel\ComponentResourceManager.cs (2)
86TypeDescriptor.ValidateRegisteredType(typeFromValue); 198static PropertyDescriptorCollection TypeDescriptorGetProperties(object value) => TypeDescriptor.GetProperties(value);
System\ComponentModel\Container.cs (1)
234InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(s.Component)[typeof(InheritanceAttribute)]!;
System\ComponentModel\CustomTypeDescriptor.cs (10)
96if (TypeDescriptor.RequireRegisteredTypes) 98TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType)); 103TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType)); 131[RequiresUnreferencedCode(TypeDescriptor.DesignTimeAttributeTrimmed)] 179if (TypeDescriptor.RequireRegisteredTypes) 181TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType)); 186TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType)); 220if (TypeDescriptor.RequireRegisteredTypes) 222TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType)); 227TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
System\ComponentModel\DelegatingTypeDescriptionProvider.cs (5)
28internal TypeDescriptionProvider Provider => TypeDescriptor.GetProviderRecursive(_type); 99[return: DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] 101[DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] Type objectType, 117public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 130public override void RegisterType<[DynamicallyAccessedMembers(TypeDescriptor.RegisteredTypesDynamicallyAccessedMembers)] T>() => Provider.RegisterType<T>();
System\ComponentModel\Design\DesignerOptionService.cs (1)
178PropertyDescriptorCollection props = TypeDescriptor.GetProperties(_value);
System\ComponentModel\Design\IDesignerFilter.cs (6)
16/// through the <see cref='System.ComponentModel.TypeDescriptor'/> object. 22/// through the <see cref='System.ComponentModel.TypeDescriptor'/> object. 28/// through the <see cref='System.ComponentModel.TypeDescriptor'/> object. 34/// through the <see cref='System.ComponentModel.TypeDescriptor'/> object. 40/// through the <see cref='System.ComponentModel.TypeDescriptor'/> object. 46/// through the <see cref='System.ComponentModel.TypeDescriptor'/> object.
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (2)
123string? sourceName = TypeDescriptor.GetComponentName(source.Owner!) ?? source.Owner!.ToString(); 124string? relName = TypeDescriptor.GetComponentName(relationship.Owner!) ?? relationship.Owner!.ToString();
System\ComponentModel\EnumConverter.cs (2)
240[return: DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] 241static Type GetTypeDescriptorReflectionType(Type enumType) => TypeDescriptor.GetReflectionType(enumType);
System\ComponentModel\EventDescriptorCollection.cs (1)
360TypeDescriptor.SortDescriptorArray(this);
System\ComponentModel\ExpandableObjectConverter.cs (1)
28return TypeDescriptor.GetProperties(value, attributes);
System\ComponentModel\ICustomTypeDescriptor.cs (10)
50[RequiresUnreferencedCode(TypeDescriptor.DesignTimeAttributeTrimmed)] 91if (TypeDescriptor.RequireRegisteredTypes) 93TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType)); 98TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetConverterFromRegisteredType)); 111if (TypeDescriptor.RequireRegisteredTypes) 113TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType)); 118TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetEventsFromRegisteredType)); 133if (TypeDescriptor.RequireRegisteredTypes) 135TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType)); 140TypeDescriptor.ThrowHelper.ThrowNotImplementedException_CustomTypeProviderMustImplememtMember(nameof(GetPropertiesFromRegisteredType));
System\ComponentModel\InheritanceAttribute.cs (1)
109public override string ToString() => TypeDescriptor.GetConverterTrimUnsafe(typeof(InheritanceLevel)).ConvertToString(InheritanceLevel)!;
System\ComponentModel\MemberDescriptor.cs (4)
221if (_metadataVersion != TypeDescriptor.MetadataVersion) 374_metadataVersion = TypeDescriptor.MetadataVersion; 438return TypeDescriptor.GetAssociation(type, instance); 452return TypeDescriptor.GetAssociation(componentClass, component);
System\ComponentModel\NullableConverter.cs (1)
34UnderlyingTypeConverter = TypeDescriptor.GetConverter(UnderlyingType);
System\ComponentModel\PropertyDescriptor.cs (8)
87_converter ??= TypeDescriptor.GetConverter(PropertyType); 114_converter ??= TypeDescriptor.GetConverterFromRegisteredType(PropertyType); 232return TypeDescriptor.CreateInstance(null, type, typeArgs, new object[] { PropertyType }); 235return TypeDescriptor.CreateInstance(null, type, null, null); 272return TypeDescriptor.GetProperties(PropertyType, filter); 276return TypeDescriptor.GetProperties(instance, filter); 283[RequiresUnreferencedCode(TypeDescriptor.DesignTimeAttributeTrimmed + " " + PropertyDescriptorPropertyTypeMessage)] 329editor ??= TypeDescriptor.GetEditor(PropertyType, editorBaseType);
System\ComponentModel\PropertyDescriptorCollection.cs (1)
378TypeDescriptor.SortDescriptorArray(this);
System\ComponentModel\ReflectEventDescriptor.cs (4)
63[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] 75[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentClass, 95[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentClass, 114[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType,
System\ComponentModel\ReflectionCachesUpdateHandler.cs (2)
26TypeDescriptor.Refresh(type); 33TypeDescriptor.Refresh(assembly);
System\ComponentModel\ReflectPropertyDescriptor.cs (5)
140[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentClass, 161[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentClass, 254_realChangedEvent = TypeDescriptor.GetEvents(_componentClass)[Name + "Changed"]; 273_realIPropChangedEvent = TypeDescriptor.GetEvents(typeof(INotifyPropertyChanged))["PropertyChanged"]; 776foreach (Attribute typeAttr in TypeDescriptor.GetAttributes(PropertyType))
System\ComponentModel\ReflectTypeDescriptionProvider.cs (39)
226lock (TypeDescriptor.s_commonSyncObject) 309internal AttributeCollection GetAttributes([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type) 342internal string? GetClassName([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type) 370internal TypeConverter GetConverter([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, object? instance) 387internal EventDescriptor? GetDefaultEvent([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, object? instance) 397internal PropertyDescriptor? GetDefaultProperty([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, object? instance) 406[RequiresUnreferencedCode(TypeDescriptor.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")] 407internal object? GetEditor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, object? instance, Type editorBaseType) 437lock (TypeDescriptor.s_commonSyncObject) 463internal EventDescriptorCollection GetEvents([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type) 532[RequiresUnreferencedCode(TypeDescriptor.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")] 572IDictionary? cache = TypeDescriptor.GetCache(instance); 653IDictionary? cache = TypeDescriptor.GetCache(instance); 850return TypeDescriptor.GetComponentName(component); 876internal PropertyDescriptorCollection GetProperties([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type) 896return TypeDescriptor.GetAssociation(type, instance); 903[return: DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] 905[DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] Type objectType, 917private ReflectedTypeData? GetTypeData([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, bool createIfNeeded) 925lock (TypeDescriptor.s_commonSyncObject) 931if (TypeDescriptor.RequireRegisteredTypes && !td.IsRegistered && !IsIntrinsicType(type)) 933TypeDescriptor.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type); 939if (TypeDescriptor.RequireRegisteredTypes && !IsIntrinsicType(type)) 942TypeDescriptor.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type); 965TypeDescriptor.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type); 971TypeDescriptor.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(type); 977public override void RegisterType<[DynamicallyAccessedMembers(TypeDescriptor.RegisteredTypesDynamicallyAccessedMembers)] T>() 986lock (TypeDescriptor.s_commonSyncObject) 1005lock (TypeDescriptor.s_commonSyncObject) 1030public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 1102lock (TypeDescriptor.s_commonSyncObject) 1130lock (TypeDescriptor.s_commonSyncObject) 1158lock (TypeDescriptor.s_commonSyncObject) 1234IDictionary? cache = TypeDescriptor.GetCache(provider); 1255lock (TypeDescriptor.s_commonSyncObject) 1264AttributeCollection attributes = TypeDescriptor.GetAttributes(providerType); 1323[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type) => 1340lock (TypeDescriptor.s_commonSyncObject) 1430[RequiresUnreferencedCode(TypeDescriptor.DesignTimeAttributeTrimmed)]
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (18)
110attributes.AddRange(TypeDescriptor.GetAttributes(iface).Attributes); 195typeAttr = (TypeConverterAttribute?)TypeDescriptor.GetAttributes(_type)[typeof(TypeConverterAttribute)]; 196TypeConverterAttribute instanceAttr = (TypeConverterAttribute)TypeDescriptor.GetAttributes(instance)[typeof(TypeConverterAttribute)]!; 204TypeDescriptor.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(_type); 215typeAttr ??= (TypeConverterAttribute?)TypeDescriptor.GetAttributes(_type)[typeof(TypeConverterAttribute)]; 238TypeDescriptor.ThrowHelper.ThrowInvalidOperationException_RegisterTypeRequired(_type); 255attributes = TypeDescriptor.GetAttributes(instance); 259attributes = TypeDescriptor.GetAttributes(_type); 267return TypeDescriptor.GetEvents(instance)[attr.Name]; 271return TypeDescriptor.GetEvents(_type)[attr.Name]; 288attributes = TypeDescriptor.GetAttributes(instance); 292attributes = TypeDescriptor.GetAttributes(_type); 300return TypeDescriptor.GetProperties(instance)[attr.Name]; 304return TypeDescriptor.GetProperties(_type)[attr.Name]; 314[RequiresUnreferencedCode(TypeDescriptor.DesignTimeAttributeTrimmed + " The Type of instance cannot be statically discovered.")] 326typeAttr = GetEditorAttribute(TypeDescriptor.GetAttributes(_type), editorBaseType); 327EditorAttribute? instanceAttr = GetEditorAttribute(TypeDescriptor.GetAttributes(instance), editorBaseType); 353typeAttr = GetEditorAttribute(TypeDescriptor.GetAttributes(_type), editorBaseType);
System\ComponentModel\RefreshEventArgs.cs (1)
7/// Provides data for the <see cref='System.ComponentModel.TypeDescriptor.Refresh(object)'/> event.
System\ComponentModel\RefreshEventHandler.cs (1)
7/// Represents the method that will handle the <see cref='System.ComponentModel.TypeDescriptor.Refresh(object)'/> event
System\ComponentModel\TypeDescriptionProvider.cs (9)
50public virtual void RegisterType<[DynamicallyAccessedMembers(TypeDescriptor.RegisteredTypesDynamicallyAccessedMembers)] T>() 179[return: DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] 180public Type GetReflectionType([DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] Type objectType) => GetReflectionType(objectType, null); 208[return: DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] 210[DynamicallyAccessedMembers(TypeDescriptor.ReflectTypesDynamicallyAccessedMembers)] Type objectType, 252public ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType) 287public virtual ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 373/// Whether the provider uses reflection and requires types to be registered through <see cref="TypeDescriptor.RegisterType{T}"/> 391/// Returns whether the type was registered with its provider through <see cref="TypeDescriptor.RegisterType{T}"/>.
System\ComponentModel\TypeDescriptor.cs (26)
170/// Indicates whether types require registration in order to be used with <see cref="TypeDescriptor"/>. 206TypeDescriptor.AddProvider(provider, type); 461[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType, 474[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType, 521[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType, 535[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType, 686public static AttributeCollection GetAttributes([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType) 818[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType) 873public static TypeConverter GetConverter([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type) 880internal static TypeConverter GetConverterTrimUnsafe([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type) => 893private static object? ConvertFromInvariantString([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, string stringValue) 903[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType) 941[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType) 979[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, 1089[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type type, 1101[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType) 1127[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType, 1338[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType) 1364[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type componentType, 2776public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 2887public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 3063public override ICustomTypeDescriptor? GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 3357public override ICustomTypeDescriptor GetTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType, object? instance) 3394internal DefaultTypeDescriptor GetDefaultTypeDescriptor([DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType) 3776[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] 3785[DynamicallyAccessedMembers(TypeDescriptor.AllMembersAndInterfaces)] Type objectType,
System\Drawing\ColorConverter.cs (1)
75TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\PointConverter.cs (3)
46TypeConverter converter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 67TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 110PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(Point), attributes);
System\Drawing\RectangleConverter.cs (3)
46TypeConverter converter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 69TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 120PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(Rectangle), attributes);
System\Drawing\SizeConverter.cs (3)
46TypeConverter converter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 67TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 110PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(Size), attributes);
System\Drawing\SizeFConverter.cs (3)
46TypeConverter converter = TypeDescriptor.GetConverterTrimUnsafe(typeof(float)); 67TypeConverter floatConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(float)); 108PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(SizeF), attributes);
System.Configuration.ConfigurationManager (5)
System\Configuration\ApplicationSettingsBase.cs (1)
515TypeConverter tc = TypeDescriptor.GetConverter(propertyInfo.PropertyType);
System\Configuration\ConfigurationProperty.cs (1)
394_converter = TypeDescriptor.GetConverter(Type);
System\Configuration\InfiniteTimeSpanConverter.cs (1)
11private static readonly TypeConverter s_timeSpanConverter = TypeDescriptor.GetConverter(typeof(TimeSpan));
System\Configuration\SettingsPropertyValue.cs (2)
208TypeConverter converter = TypeDescriptor.GetConverter(type); 261TypeConverter converter = TypeDescriptor.GetConverter(type);
System.Data.Common (16)
System\Data\Common\DbConnectionStringBuilder.cs (10)
445foreach (PropertyDescriptor reflected in TypeDescriptor.GetProperties(this, true)) 597return TypeDescriptor.GetClassName(this, true); 606return TypeDescriptor.GetComponentName(this, true); 612return TypeDescriptor.GetAttributes(this, true); 617return TypeDescriptor.GetEditor(this, editorBaseType, true); 622return TypeDescriptor.GetConverter(this, true); 627return TypeDescriptor.GetDefaultProperty(this, true); 642return TypeDescriptor.GetDefaultEvent(this, true); 651return TypeDescriptor.GetEvents(this, true); 656return TypeDescriptor.GetEvents(this, attributes, true);
System\Data\xmlsaver.cs (1)
117PropertyDescriptorCollection pds = TypeDescriptor.GetProperties(instance);
System\Data\XMLSchema.cs (5)
21return TypeDescriptor.GetConverter(type); 42PropertyDescriptor? pd = TypeDescriptor.GetProperties(instance)[name]; 286PropertyDescriptor? pd = TypeDescriptor.GetProperties(instance)[name]; 328object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance); 399object? val = TypeDescriptor.GetProperties(instance)["ExtendedProperties"]!.GetValue(instance);
System.Data.Odbc (1)
System\Data\Odbc\OdbcCommand.cs (1)
308TypeDescriptor.Refresh(this); // VS7 208845
System.Data.OleDb (1)
OleDbCommand.cs (1)
276TypeDescriptor.Refresh(this);
System.Drawing.Common (4)
System\Drawing\FontConverter.cs (2)
255static TypeConverter GetFloatConverter() => TypeDescriptor.GetConverter(typeof(float)); 398PropertyDescriptorCollection props = TypeDescriptor.GetProperties(value, attributes);
System\Drawing\ImageConverter.cs (1)
75return TypeDescriptor.GetProperties(typeof(Image), attributes);
System\Drawing\Printing\MarginsConverter.cs (1)
63private static TypeConverter GetIntConverter() => TypeDescriptor.GetConverter(typeof(int));
System.Private.Windows.Core.TestUtilities (4)
CustomConverter.cs (4)
18TypeDescriptionProvider parentProvider = TypeDescriptor.GetProvider(type); 20TypeDescriptor.AddProvider(newProvider, type); 27/// <see cref="TypeDescriptor.RemoveProvider(TypeDescriptionProvider, Type)"/> is called when going out of scope with the using. 40public void Dispose() => TypeDescriptor.RemoveProvider(_provider, _type);
System.Resources.Extensions (3)
System\Resources\Extensions\DeserializingResourceReader.cs (2)
170TypeConverter converter = TypeDescriptor.GetConverter(type); 184TypeConverter converter = TypeDescriptor.GetConverter(type);
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
91TypeConverter converter = TypeDescriptor.GetConverter(primitiveType);
System.Windows.Forms (138)
misc\ImageListUtils.cs (1)
38PropertyDescriptor? property = TypeDescriptor.GetProperties(parentInstance)[pathInfo[i]];
System\Drawing\Design\UITypeEditor.cs (1)
63TypeDescriptor.AddEditorTable(typeof(UITypeEditor), intrinsicEditors);
System\Resources\ResXDataNode.cs (4)
246TypeConverter converter = TypeDescriptor.GetConverter(valueType); 362TypeConverter converter = TypeDescriptor.GetConverter(type); 402&& TypeDescriptor.GetConverter(ResolveTypeName(typeName)) is { } converter 615return TypeDescriptor.GetConverter(typeof(ResXFileRef)).ConvertFrom(_fileRef.ToString());
System\Windows\Forms\ActiveX\AxHost.cs (10)
994if (TypeDescriptor.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int)) 2392if (TypeDescriptor.GetProperties(this)["SelectionStyle"] is { } property && property.PropertyType == typeof(int)) 2431TypeDescriptor.Refresh(GetType()); 2434return TypeDescriptor.GetAttributes(this, true); 2471return TypeDescriptor.GetDefaultEvent(this, true); 2478return TypeDescriptor.GetDefaultProperty(this, true); 2498=> TypeDescriptor.GetEvents(this, noCustomTypeDesc: true); 2503=> TypeDescriptor.GetEvents(this, attributes, noCustomTypeDesc: true); 2509TypeDescriptor.Refresh(GetType()); 2584PropertyDescriptorCollection baseProps = TypeDescriptor.GetProperties(this, null, true);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
1044PropertyDescriptorCollection props = TypeDescriptor.GetProperties( 1498PropertyDescriptorCollection props = TypeDescriptor.GetProperties(
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
24_innerConverter = TypeDescriptor.GetConverter(baseType);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedUITypeEditor.cs (1)
22_innerEditor = (UITypeEditor?)TypeDescriptor.GetEditor(baseType, typeof(UITypeEditor));
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
62=> TypeDescriptor.GetProperties(value, attributes);
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (1)
53PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(value, attributes);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (6)
18/// through the <see cref="TypeDescriptor"/> support in .NET. 22/// <see cref="TypeDescriptor.ComObjectType"/>. 100internal static TypeConverter GetIComponentConverter() => TypeDescriptor.GetConverter(typeof(IComponent)); 104=> TypeDescriptor.GetEditor(component.GetType(), baseEditorType); 341TypeConverter subConverter = TypeDescriptor.GetConverter(type); 347object? subEditor = TypeDescriptor.GetEditor(type, editorType);
System\Windows\Forms\Control.cs (2)
12739sizeProperty = TypeDescriptor.GetProperties(this)[PropertyNames.Size]; 12740locationProperty = TypeDescriptor.GetProperties(this)[PropertyNames.Location];
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
166PropertyDescriptor? pd = TypeDescriptor.GetProperties(this)["UseVisualStyleBackColor"];
System\Windows\Forms\Controls\Buttons\FlatButtonAppearanceConverter.cs (1)
27return TypeDescriptor.GetProperties(value, attributes);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
912TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 943TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6809converter = TypeDescriptor.GetConverter(type);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
242formattedValueTypeConverter = TypeDescriptor.GetConverter(FormattedValueType); 728valueTypeConverter = TypeDescriptor.GetConverter(ValueType);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (7)
313: TypeDescriptor.GetConverter(DisplayType); 1059PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(DisplayMember, ignoreCase: true); 1068PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(ValueMember, ignoreCase: true); 1133PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(ValueMember, ignoreCase: true); 1143PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item).Find(DisplayMember, ignoreCase: true); 1452PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(item!).Find(field, ignoreCase: true); 1470PropertyDescriptor? propDesc = TypeDescriptor.GetProperties(itemCandidate).Find(field, ignoreCase: true);
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (2)
95TypeConverter intConverter = TypeDescriptor.GetConverter(typeof(int)); 153PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(LinkArea), attributes);
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
91TypeConverter intConverter = TypeDescriptor.GetConverter(typeof(int));
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
449descriptor = TypeDescriptor.GetProperties(item).Find(field, true); 546s_stringTypeConverter ??= TypeDescriptor.GetConverter(typeof(string)); 551s_stringTypeConverter ??= TypeDescriptor.GetConverterFromRegisteredType(typeof(string));
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
42Type t = TypeDescriptor.GetReflectionType(value);
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (2)
50PropertyDescriptorCollection listViewItemProps = TypeDescriptor.GetProperties(instance); 61PropertyDescriptorCollection listViewProps = TypeDescriptor.GetProperties(listViewInstance);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
109args[i] = TypeDescriptor.GetConverter(propValue).ConvertToString(context, culture, propValue); 175PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(SelectionRange), attributes);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
1999enable = TypeDescriptor.GetEditor(obj, typeof(ComponentEditor)) is not null; 2378OnComComponentNameChanged(new ComponentRenameEventArgs(obj, oldName: null, TypeDescriptor.GetClassName(obj))); 2540TypeDescriptor.Refreshed += OnTypeDescriptorRefreshed; 2549TypeDescriptor.Refreshed -= OnTypeDescriptorRefreshed; 2946&& TypeDescriptor.GetEditor(propertyType, typeof(UITypeEditor)) is UITypeEditor editor) 3131var editor = (ComponentEditor?)TypeDescriptor.GetEditor(obj, typeof(ComponentEditor));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (7)
124protected virtual AttributeCollection Attributes => TypeDescriptor.GetAttributes(PropertyType!); 362forceReadOnly |= TypeDescriptor.GetAttributes(value).Contains(InheritanceAttribute.InheritedReadOnly); 376bool hasImmutableAttribute = TypeDescriptor.GetAttributes(PropertyType!)[typeof(ImmutableObjectAttribute)]! 758=> _typeConverter ??= TypeDescriptor.GetConverter((PropertyValue ?? PropertyType)!); 769Editor = (UITypeEditor?)TypeDescriptor.GetEditor(PropertyType, typeof(UITypeEditor)); 1147PropertyDescriptor? property = TypeDescriptor.GetProperties(owner)[propertyName]; 1300defaultProperty = TypeDescriptor.GetDefaultProperty(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (1)
138TypeConverter converter = TypeDescriptor.GetConverter(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
45|| TypeDescriptor.GetAttributes(target).Contains(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (3)
49return TypeDescriptor.GetProperties(component, attributes); 53? TypeDescriptor.GetConverter(component) 57? TypeDescriptor.GetProperties(component, attributes)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (4)
100typeName = TypeDescriptor.GetClassName(owner); 110PropertyDescriptor? componentProperty = TypeDescriptor.GetProperties(ownerType)[PropertyName!]; 114typeName = componentType is null ? TypeDescriptor.GetClassName(owner) : componentType.FullName; 642eventDescriptor = TypeDescriptor.GetEvents(eventObj!)[PropertyDescriptor.Name];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
198editor = (InstanceCreationEditor?)TypeDescriptor.GetEditor(ute, typeof(InstanceCreationEditor));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (3)
41_valueClassName = TypeDescriptor.GetClassName(Target); 128|| TypeDescriptor.GetAttributes(Target).Contains(InheritanceAttribute.InheritedReadOnly)) 185_valueClassName = TypeDescriptor.GetClassName(Target);
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
121PropertyDescriptor? pd = TypeDescriptor.GetProperties(this)[nameof(UseVisualStyleBackColor)];
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (2)
50percent = (double)TypeDescriptor.GetConverter(typeof(double)).ConvertFrom(context, culture, text)!; 55percent = (double)TypeDescriptor.GetConverterFromRegisteredType(typeof(double)).ConvertFrom(context, culture, text)!;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
202TypeDescriptor.RegisterType<Keys>(); 1103return TypeDescriptor.GetConverter(typeof(Keys)).ConvertToString(context: null, CultureInfo.CurrentUICulture, shortcutKeys); 1108return TypeDescriptor.GetConverterFromRegisteredType(typeof(Keys)).ConvertToString(context: null, CultureInfo.CurrentUICulture, shortcutKeys);
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (1)
85PropertyDescriptorCollection props = TypeDescriptor.GetProperties(instance);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
735PropertyDescriptor? prop = TypeDescriptor.GetProperties(this)["SelectionStyle"]; 1062PropertyDescriptor? prop = TypeDescriptor.GetProperties(this)["SelectionStyle"];
System\Windows\Forms\DataBinding\Binding.cs (6)
495InheritanceAttribute? attr = (InheritanceAttribute?)TypeDescriptor.GetAttributes(BindableComponent)[typeof(InheritanceAttribute)]; 498propInfos = TypeDescriptor.GetProperties(controlClass); 502propInfos = TypeDescriptor.GetProperties(BindableComponent); 547EventDescriptorCollection eventInfos = TypeDescriptor.GetEvents(BindableComponent); 718TypeConverter typeConverter = TypeDescriptor.GetConverter(value is not null ? value.GetType() : typeof(object)); 792TypeConverter typeConverter = TypeDescriptor.GetConverter(value is not null ? value.GetType() : typeof(object));
System\Windows\Forms\DataBinding\BindingManagerBase.cs (5)
109return TypeDescriptor.GetProperties(listType); 116return TypeDescriptor.GetProperties(property.PropertyType, [new BrowsableAttribute(true)]); 123return TypeDescriptor.GetProperties(list[0]!); 137itemProps = TypeDescriptor.GetProperties(property.PropertyType, [new BrowsableAttribute(true)]); 159itemProps = TypeDescriptor.GetProperties(list[0]!);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (2)
141PropertyDescriptor? prop = TypeDescriptor.GetProperties(b)[constructorParameterProperty]; 187val = TypeDescriptor.GetProperties(b)[constructorParameterProperty]?.GetValue(b);
System\Windows\Forms\DataBinding\ListBindingHelper.cs (8)
142pdc = TypeDescriptor.GetProperties(target!); 487return TypeDescriptor.GetProperties(target!, BrowsableAttributeList); 568return TypeDescriptor.GetProperties(GetListItemType(type), BrowsableAttributeList); 578pdc = TypeDescriptor.GetProperties(targetType.GetElementType()!, BrowsableAttributeList); 593pdc = TypeDescriptor.GetProperties(type, BrowsableAttributeList); 631pdc = TypeDescriptor.GetProperties(enumerable, BrowsableAttributeList); 639pdc = TypeDescriptor.GetProperties(instance, BrowsableAttributeList); 643pdc = TypeDescriptor.GetProperties(enumerable, BrowsableAttributeList);
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
39_propInfo = TypeDescriptor.GetProperties(_dataSource).Find(_propName, true) ?? 68return $"{TypeDescriptor.GetClassName(_dataSource!)}.{_propName}";
System\Windows\Forms\Design\EventsTab.cs (6)
42return TypeDescriptor.GetDefaultEvent(obj) is EventDescriptor defaultEvent 95/// to get <paramref name="component"/> property descriptors from <see cref="TypeDescriptor.GetEvents(object)"/>. 110TypeDescriptor.GetEvents(component, attributes, noCustomTypeDesc: false)); 131var matchingComponentProperties = TypeDescriptor.GetProperties(component, specifiedAttributesPlusContent); 150EventDescriptorCollection propertyEvents = TypeDescriptor.GetEvents(value!, attributes!); 156matchingPropertyEvents.Add(TypeDescriptor.CreateProperty(property.ComponentType, property, MergablePropertyAttribute.No));
System\Windows\Forms\Design\PropertyTab.cs (1)
107=> TypeDescriptor.GetDefaultProperty(component);
System\Windows\Forms\ImageIndexConverter.cs (1)
108PropertyDescriptorCollection props = TypeDescriptor.GetProperties(instance);
System\Windows\Forms\ImageKeyConverter.cs (1)
114PropertyDescriptorCollection props = TypeDescriptor.GetProperties(instance);
System\Windows\Forms\Internal\Formatter.cs (6)
143sourceTypeTypeConverter = TypeDescriptor.GetConverter(sourceType); 148sourceTypeTypeConverter = TypeDescriptor.GetConverterFromRegisteredType(sourceType); 159targetTypeTypeConverter = TypeDescriptor.GetConverter(targetType); 164targetTypeTypeConverter = TypeDescriptor.GetConverterFromRegisteredType(targetType); 298TypeConverter targetTypeTypeConverter = TypeDescriptor.GetConverter(targetType); 304TypeConverter sourceTypeTypeConverter = TypeDescriptor.GetConverter(sourceType);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
102PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(TableLayoutPanelCellPosition), attributes);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (7)
46TypeConverter converter = TypeDescriptor.GetConverter(this); 472converter = TypeDescriptor.GetConverter(this); 477TypeDescriptor.RegisterType<TableLayoutSettings>(); 478converter = TypeDescriptor.GetConverterFromRegisteredType(this); 501TypeDescriptor.RegisterType<Control>(); 515prop = TypeDescriptor.GetProperties(c)["Name"]; 520prop = TypeDescriptor.GetPropertiesFromRegisteredType(c)["Name"];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
49PropertyDescriptor? prop = TypeDescriptor.GetProperties(tableControl)["Name"];
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdges.cs (1)
20PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(DockPaddingEdges), attributes);
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
76fontSize = (float)TypeDescriptor.GetConverter(typeof(float)).ConvertFromString(null, s_culture, unitTokens.size);
System.Windows.Forms.Design (514)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
103if (!TypeDescriptor.GetConverter(type).GetCreateInstanceSupported()) 105foreach (PropertyDescriptor p in TypeDescriptor.GetProperties(type)) 1240AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(PropertyType); 1342_uiTypeEditor = TypeDescriptor.GetEditor(_value, typeof(UITypeEditor));
System\ComponentModel\Design\CollectionEditor.cs (5)
116if (TypeDescriptor.CreateInstance(host, itemType, argTypes: null, args: null) is { } obj) 125nameof(TypeDescriptor), 153PropertyDescriptor? property = TypeDescriptor.GetDefaultProperty(CollectionType); 162text = TypeDescriptor.GetConverter(value).ConvertToString(value); 176PropertyInfo[] properties = TypeDescriptor.GetReflectionType(CollectionType).GetProperties(BindingFlags.Public | BindingFlags.Instance);
System\ComponentModel\Design\ComponentDesigner.cs (7)
40PropertyDescriptor? defaultProperty = TypeDescriptor.GetDefaultProperty(_component); 271EventDescriptor? defaultEvent = TypeDescriptor.GetDefaultEvent(comp); 410PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(Component); 440TypeDescriptor.Refresh(Component); // force TypeDescriptor to re-query us. 640events[evt.Name] = TypeDescriptor.CreateEvent(evt.ComponentType, evt, ReadOnlyAttribute.Yes); 668properties[prop.Name] = TypeDescriptor.CreateProperty(prop.ComponentType, prop, ReadOnlyAttribute.Yes); 713properties[SettingsKeyName] = TypeDescriptor.CreateProperty(
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (1)
62descriptor = TypeDescriptor.GetProperties(_designer.Component.GetType())[propertyName];
System\ComponentModel\Design\DesignerActionPanel.cs (1)
666PropertyDescriptor? pd = TypeDescriptor.GetProperties(list)[pti.MemberName]
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
25protected PropertyDescriptor PropertyDescriptor => _propDesc ??= TypeDescriptor.GetProperties(_actionList!)[PropertyItem!.MemberName]!;
System\ComponentModel\Design\DesignerActionUI.cs (1)
171InheritanceAttribute? attribute = (InheritanceAttribute?)TypeDescriptor.GetAttributes(comp)[typeof(InheritanceAttribute)];
System\ComponentModel\Design\DesignerHost.cs (4)
134Type type = TypeDescriptor.GetProvider(component).GetReflectionType(typeof(object)); 140TypeDescriptor.AddProvider(typeProvider, component); 234&& !TypeDescriptor.GetAttributes(extenderComponent).Contains(InheritanceAttribute.InheritedReadOnly) 393Type reflectType = TypeDescriptor.GetReflectionType(component);
System\ComponentModel\Design\DesignSurface.cs (6)
263? TypeDescriptor.CreateDesigner(component, typeof(IRootDesigner)) as IRootDesigner 264: TypeDescriptor.CreateDesigner(component, typeof(IDesigner)); 277ConstructorInfo? ctor = TypeDescriptor.GetReflectionType(type).GetConstructor([]); 280instance = TypeDescriptor.CreateInstance(this, type, [], []); 286ctor = TypeDescriptor.GetReflectionType(type).GetConstructor(BindingFlags.Public | BindingFlags.Instance | BindingFlags.ExactBinding, null, [typeof(IContainer)], null); 291instance = TypeDescriptor.CreateInstance(this, type, [typeof(IContainer)], [ComponentContainer]);
System\ComponentModel\Design\InheritanceService.cs (1)
84Type reflect = TypeDescriptor.GetReflectionType(type);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
45foreach (MethodInfo method in TypeDescriptor.GetReflectionType(collection).GetMethods(BindingFlags.Public | BindingFlags.Instance))
System\ComponentModel\Design\MenuCommandService.cs (3)
43TypeDescriptor.Refreshed += OnTypeRefreshed; 151TypeDescriptor.Refreshed -= OnTypeRefreshed; 197!TypeDescriptor.GetAttributes(selectedComponent).Contains(InheritanceAttribute.InheritedReadOnly))
System\ComponentModel\Design\ReferenceService.cs (3)
47foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(reference, s_attributes)) 321Debug.Assert(TypeDescriptor.GetComponentName(sitedComponent) is not null, $"Sited component has no name: {sitedComponent}"); 344string? siteName = TypeDescriptor.GetComponentName(SitedComponent);
System\ComponentModel\Design\SelectionService.cs (2)
234string? helpContext = TypeDescriptor.GetClassName(component); 235HelpKeywordAttribute? contextAttribute = (HelpKeywordAttribute?)TypeDescriptor.GetAttributes(component)[typeof(HelpKeywordAttribute)];
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (8)
153PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 185PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 418PropertyDescriptorCollection eventProps = ebs.GetEventProperties(TypeDescriptor.GetEvents(comp)); 444PropertyDescriptor? modifierProp = TypeDescriptor.GetProperties(comp)["Modifiers"]; 464string? name = TypeDescriptor.GetComponentName(c); 580PropertyDescriptorCollection props = TypeDescriptor.GetProperties(data._value); 596PropertyDescriptorCollection events = ebs.GetEventProperties(TypeDescriptor.GetEvents(data._value)); 636object? modifier = TypeDescriptor.GetProperties(data._value)["Modifiers"]?.GetValue(data._value);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
157AttributeCollection attributes = TypeDescriptor.GetAttributes(t); 260AttributeCollection attributes = TypeDescriptor.GetAttributes(baseType); 864&& field.Type.BaseType.Equals(TypeDescriptor.GetClassName(component)))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
54return modifierConverter ?? TypeDescriptor.GetConverter(typeof(MemberAttributes));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersExtenderProvider.cs (1)
41if (!TypeDescriptor.GetAttributes(o)[typeof(InheritanceAttribute)]!.Equals(InheritanceAttribute.NotInherited))
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifiersInheritedExtenderProvider.cs (3)
41AttributeCollection attributes = TypeDescriptor.GetAttributes(o); 89FieldInfo? field = TypeDescriptor.GetReflectionType(baseType).GetField(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); 114PropertyInfo? prop = TypeDescriptor.GetReflectionType(baseType).GetProperty(name, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static);
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (3)
66PropertyDescriptorCollection props = TypeDescriptor.GetProperties(instance, s_deserializeFilter); 180string? varTypeName = TypeDescriptor.GetClassName(value); 348PropertyDescriptorCollection props = TypeDescriptor.GetProperties(instance, [BrowsableAttribute.Yes]);
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (10)
159return TypeDescriptor.GetReflectionType(type); 204return TypeDescriptor.GetReflectionType(instance); 233return TypeDescriptor.GetProperties(instance); 236return TypeDescriptor.GetProperties(instance, attributes); 265return TypeDescriptor.GetEvents(instance); 268return TypeDescriptor.GetEvents(instance, attributes); 290return TypeDescriptor.GetAttributes(instance); 322return TypeDescriptor.GetAttributes(type); 1879TypeConverter converter = TypeDescriptor.GetConverter(value); 1925return new CodeObjectCreateExpression(TypeDescriptor.GetClassName(value)!, []);
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (3)
326provider ??= TypeDescriptor.GetProvider(originalCollection); 411if (o is IComponent && TypeDescriptor.GetAttributes(o).Contains(InheritanceAttribute.InheritedReadOnly)) 675MethodInfo? clearMethod = TypeDescriptor.GetReflectionType(collection).GetMethod("Clear", BindingFlags.Public | BindingFlags.Instance, null, [], null);
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (3)
63props ??= TypeDescriptor.GetProperties(comp); 105PropertyDescriptorCollection props = TypeDescriptor.GetProperties(value); 208string? typeName = TypeDescriptor.GetClassName(value);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (6)
287instance = TypeDescriptor.CreateInstance(_provider, type, argTypes: null, argArray); 304foreach (ConstructorInfo info in TypeDescriptor.GetReflectionType(type).GetConstructors(BindingFlags.Instance | BindingFlags.Public | BindingFlags.CreateInstance)) 341instance = TypeDescriptor.CreateInstance(_provider, type, argTypes: null, tempArgs); 444AttributeCollection attributes = TypeDescriptor.GetAttributes(objectType); 489DefaultSerializationProviderAttribute? attribute = (DefaultSerializationProviderAttribute?)TypeDescriptor.GetAttributes(serializerType)[typeof(DefaultSerializationProviderAttribute)]; 672PropertyDescriptorCollection props = TypeDescriptor.GetProperties(propObject);
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (1)
35TypeConverter? converter = TypeDescriptor.GetConverter(enumValue);
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
64Type type = TypeDescriptor.GetProvider(propertyValue).GetReflectionType(typeof(object)); 71TypeDescriptor.AddProvider(typeProvider, propertyValue);
System\ComponentModel\Design\Serialization\ResourcePropertyMemberCodeDomSerializer.cs (1)
54PropertyDescriptor? prop = TypeDescriptor.GetProperties(comp)["LoadLanguage"];
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
248typeName = TypeDescriptor.GetClassName(value); 306PropertyDescriptor? prop = TypeDescriptor.GetProperties(value)["Modifiers"];
System\ComponentModel\Design\ToolStripContainerActionList.cs (8)
34PropertyDescriptor? getProperty = TypeDescriptor.GetProperties(component)?[propertyName]; 55PropertyDescriptor? visibleProperty = TypeDescriptor.GetProperties(control)["Visible"]; 70PropertyDescriptor? changingProperty = TypeDescriptor.GetProperties(component)[propertyName]; 88PropertyDescriptor? dockProperty = TypeDescriptor.GetProperties(_toolStripContainer)["Dock"]; 121PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(_toolStripContainer)["Dock"]; 140PropertyDescriptor? autoScrollProp = TypeDescriptor.GetProperties(newParent)["AutoScroll"]; 160if (TypeDescriptor.GetAttributes(control)?[typeof(InheritanceAttribute)] is not InheritanceAttribute inheritanceAttribute 168PropertyDescriptor? controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\ComponentModel\Design\UndoEngine.cs (1)
452PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp);
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
29_cursorConverter = TypeDescriptor.GetConverter(typeof(Cursor));
System\Drawing\Design\ToolboxItem.cs (2)
267comps.Add((IComponent)TypeDescriptor.CreateInstance(provider: null, createType, argTypes: null, args: null)!); 616foreach (Attribute a in TypeDescriptor.GetAttributes(type))
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
560designer = TypeDescriptor.CreateDesigner(targetControl, typeof(IDesigner)) as ControlDesigner;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (8)
237PropertyDescriptor propLoc = TypeDescriptor.GetProperties(currentControl)["Visible"]; 264PropertyDescriptor propLoc = TypeDescriptor.GetProperties(_dragComponents[dragComponentIndex].dragComponent)["Location"]; 341PropertyDescriptor targetProp = TypeDescriptor.GetProperties(dragTarget)["Controls"]; 342PropertyDescriptor sourceProp = TypeDescriptor.GetProperties(dragSource)["Controls"]; 365string name = TypeDescriptor.GetComponentName(_dragComponents[0].dragComponent); 460PropertyDescriptor propLoc = TypeDescriptor.GetProperties(primaryComponent)["Location"]; 871PropertyDescriptor snapProp = TypeDescriptor.GetProperties(parentControl)["SnapToGrid"]; 874PropertyDescriptor gridProp = TypeDescriptor.GetProperties(parentControl)["GridSize"];
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (15)
239string name = TypeDescriptor.GetComponentName(_resizeComponents[0].resizeControl); 266PropertyDescriptor snapProp = TypeDescriptor.GetProperties(control.Parent)["SnapToGrid"]; 269PropertyDescriptor gridProp = TypeDescriptor.GetProperties(control.Parent)["GridSize"]; 330PropertyDescriptor prop = TypeDescriptor.GetProperties(control)["Locked"]; 426PropertyDescriptor propIntegralHeight = TypeDescriptor.GetProperties(control)["IntegralHeight"]; 432PropertyDescriptor propItemHeight = TypeDescriptor.GetProperties(control)["ItemHeight"]; 518propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Width"]; 519propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Height"]; 520propTop = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Top"]; 521propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Left"]; 568PropertyDescriptor propIntegralHeight = TypeDescriptor.GetProperties(targetControl)["IntegralHeight"]; 924PropertyDescriptor propWidth = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Width"]; 925PropertyDescriptor propHeight = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Height"]; 926PropertyDescriptor propTop = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Top"]; 927PropertyDescriptor propLeft = TypeDescriptor.GetProperties(_resizeComponents[0].resizeControl)["Left"];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (6)
102_resizeProp = TypeDescriptor.GetProperties(_tableGlyph.Style)[isColumn ? "Width" : "Height"]; 108_changedProp = TypeDescriptor.GetProperties(_table)[isColumn ? "ColumnStyles" : "RowStyles"]; 127_rightStyle.styleProp = TypeDescriptor.GetProperties(_rightStyle.style)[isColumn ? "Width" : "Height"]; 131_leftStyle.styleProp = TypeDescriptor.GetProperties(_leftStyle.style)[isColumn ? "Width" : "Height"]; 323PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[i])[isColumn ? "Width" : "Height"]; 331PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[absIndex])[isColumn ? "Width" : "Height"];
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
164PropertyDescriptor? controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"]; 197string? name = TypeDescriptor.GetComponentName(control);
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (2)
78MemberDescriptor? memberDescriptor = TypeDescriptor.GetProperties(navigator)["Items"]; 84PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(navigator)[itemName];
System\Windows\Forms\Design\BindingSourceDesigner.cs (1)
62PropertyDescriptorCollection propertyDescriptorCollection = TypeDescriptor.GetProperties(bindingSource);
System\Windows\Forms\Design\ButtonBaseDesigner.cs (2)
25PropertyDescriptor? prop = TypeDescriptor.GetProperties(Component)["UseVisualStyleBackColor"]; 49PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
65PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"];
System\Windows\Forms\Design\CollectionEditVerbManager.cs (2)
34prop = TypeDescriptor.GetDefaultProperty(designer.Component); 196CollectionEditor itemsEditor = TypeDescriptor.GetEditor(propertyValue, typeof(UITypeEditor)) as CollectionEditor;
System\Windows\Forms\Design\ColumnHeaderCollectionEditor.cs (1)
62property = TypeDescriptor.GetProperties(Context.Instance)["Columns"];
System\Windows\Forms\Design\ComboBoxDesigner.cs (2)
82PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 108PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\CommandSet.cs (16)
553return TypeDescriptor.GetProperties(comp)[propName]; 598PropertyDescriptorCollection props = TypeDescriptor.GetProperties(currentSnapComponent); 919PropertyDescriptor? propLoc = TypeDescriptor.GetProperties(component)["Location"]; 1000PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 1271PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 1331PropertyDescriptorCollection props = TypeDescriptor.GetProperties(comp); 1959PropertyDescriptorCollection eventProps = evs.GetEventProperties(TypeDescriptor.GetEvents(curComp)); 2054if ((TypeDescriptor.GetAttributes(curComp).Contains(DesignTimeVisibleAttribute.Yes)) || curComp is ToolStripItem) 2082PropertyDescriptorCollection props = TypeDescriptor.GetProperties(curComp); 2722PropertyDescriptorCollection props = TypeDescriptor.GetProperties(curComp); 2922if (!Equals(TypeDescriptor.GetAttributes(obj)[typeof(InheritanceAttribute)], InheritanceAttribute.NotInherited)) 3080InheritanceAttribute? attr = (InheritanceAttribute?)TypeDescriptor.GetAttributes(primarySelection)[typeof(InheritanceAttribute)]; 3462PropertyDescriptor pProp = TypeDescriptor.GetProperties(p!)["Location"]!; 3463PropertyDescriptor qProp = TypeDescriptor.GetProperties(q!)["Location"]!; 3480PropertyDescriptor pProp = TypeDescriptor.GetProperties(p!)["Location"]!; 3481PropertyDescriptor qProp = TypeDescriptor.GetProperties(q!)["Location"]!;
System\Windows\Forms\Design\ComponentTray.cs (13)
300PropertyDescriptor trayIconProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayLargeIcon"]; 406PropertyDescriptor trayAAProp = TypeDescriptor.GetProperties(_mainDesigner.Component)["TrayAutoArrange"]; 716TypeDescriptor.Refresh(component); 767AttributeCollection attributes = TypeDescriptor.GetAttributes(t); 807return TypeDescriptor.GetAttributes(component).Contains(DesignTimeVisibleAttribute.Yes); 943PropertyDescriptor loc = TypeDescriptor.GetProperties(receiver.GetType())["Location"]; 1529PropertyDescriptor loc = TypeDescriptor.GetProperties(receiver.GetType())["Location"]; 1825PropertyDescriptor ctlLocation = TypeDescriptor.GetProperties(comp)["TrayLocation"]; 1860PropertyDescriptor ctlLocation = TypeDescriptor.GetProperties(comp)["TrayLocation"]; 1931_inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(component)[typeof(InheritanceAttribute)]; 2353prop = TypeDescriptor.GetProperties(_component)["Locked"]; 2424ToolboxBitmapAttribute attr = (ToolboxBitmapAttribute)TypeDescriptor.GetAttributes(_component)[typeof(ToolboxBitmapAttribute)]; 2452EventDescriptor defaultEvent = TypeDescriptor.GetDefaultEvent(component);
System\Windows\Forms\Design\ContextMenuStripActionList.cs (2)
23PropertyDescriptor? getProperty = TypeDescriptor.GetProperties(_toolStripDropDown)[propertyName]; 36PropertyDescriptor? changingProperty = TypeDescriptor.GetProperties(_toolStripDropDown)[propertyName];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (4)
243if (TypeDescriptor.GetAttributes(component).Contains(InheritanceAttribute.InheritedReadOnly)) 319return TypeDescriptor.GetProvider(context).GetReflectionType(runtimeType); 351if (TypeDescriptor.GetReflectionType(control).GetMethod( 428InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(child)[typeof(InheritanceAttribute)]!;
System\Windows\Forms\Design\ControlCommandSet.cs (11)
381props = TypeDescriptor.GetProperties(c); 401props = TypeDescriptor.GetProperties(currentSnapComponent); 530PropertyDescriptor dockProp = TypeDescriptor.GetProperties(comp)["Dock"]; 767PropertyDescriptor propIntegralHeight = TypeDescriptor.GetProperties(component)["IntegralHeight"]; 773PropertyDescriptor propItemHeight = TypeDescriptor.GetProperties(component)["ItemHeight"]; 782PropertyDescriptor propSize = TypeDescriptor.GetProperties(component)["Size"]; 1040controlsProp = TypeDescriptor.GetProperties(parent)["Controls"]; 1103PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parent)["Controls"]; 1181PropertyDescriptor lockedProp = TypeDescriptor.GetProperties(_baseControl)["Locked"]; 1199lockedProp = TypeDescriptor.GetProperties(component)["Locked"]; 1314!TypeDescriptor.GetAttributes(obj)[typeof(InheritanceAttribute)].Equals(InheritanceAttribute.InheritedReadOnly))
System\Windows\Forms\Design\ControlDesigner.cs (13)
205PropertyDescriptorCollection props = TypeDescriptor.GetProperties(component); 783if (TypeDescriptor.GetAttributes(Component).Contains(DesignTimeVisibleAttribute.Yes) 841if (TypeDescriptor.GetAttributes(Component).Contains(DesignTimeVisibleAttribute.Yes) 930PropertyDescriptorCollection props = TypeDescriptor.GetProperties(component.GetType()); 949AttributeCollection attributes = TypeDescriptor.GetAttributes(Component); 1156PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 1174AttributeCollection attributes = TypeDescriptor.GetAttributes(Component); 1192PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(Component)["Dock"]; 1216PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 1610_hasLocation = TypeDescriptor.GetProperties(Component)["Location"] is not null; 1648properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ControlDesigner), prop, []); 1658properties["Controls"] = TypeDescriptor.CreateProperty( 1671properties["Locked"] = TypeDescriptor.CreateProperty(
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
74TypeDescriptor.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (2)
28PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(Component)["Dock"]; 64PropertyDescriptor dockProp = TypeDescriptor.GetProperties(Component!)["Dock"]!;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (5)
140PropertyDescriptorCollection props = TypeDescriptor.GetProperties(column); 206AttributeCollection? attributes = TypeDescriptor.GetAttributes(type); 540PropertyDescriptor? prop = TypeDescriptor.GetProperties(_liveDataGridView)["Columns"]; 731TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 816TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (18)
140TypeDescriptor.RemoveAssociation(listBoxItem.DataGridViewColumn, listBoxItem.DataGridViewColumnDesigner); 183PropertyDescriptor? prop = TypeDescriptor.GetProperties(_liveDataGridView)["Columns"]; 264PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(newColumns[i])["DisplayIndex"]; 274PropertyDescriptor? pd = TypeDescriptor.GetProperties(newColumns[i])["UserAddedColumn"]; 640PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(col)["UserAddedColumn"]; 763TypeDescriptor.RemoveAssociation(lbi.DataGridViewColumn, lbi.DataGridViewColumnDesigner); 865TypeDescriptor.RemoveAssociation(lbi.DataGridViewColumn, lbi.DataGridViewColumnDesigner); 1211TypeDescriptor.CreateAssociation(DataGridViewColumn, DataGridViewColumnDesigner); 1236AttributeCollection ICustomTypeDescriptor.GetAttributes() => TypeDescriptor.GetAttributes(DataGridViewColumn); 1238string? ICustomTypeDescriptor.GetClassName() => TypeDescriptor.GetClassName(DataGridViewColumn); 1240string? ICustomTypeDescriptor.GetComponentName() => TypeDescriptor.GetComponentName(DataGridViewColumn); 1243TypeConverter ICustomTypeDescriptor.GetConverter() => TypeDescriptor.GetConverter(DataGridViewColumn); 1245EventDescriptor? ICustomTypeDescriptor.GetDefaultEvent() => TypeDescriptor.GetDefaultEvent(DataGridViewColumn); 1247PropertyDescriptor? ICustomTypeDescriptor.GetDefaultProperty() => TypeDescriptor.GetDefaultProperty(DataGridViewColumn); 1250object? ICustomTypeDescriptor.GetEditor(Type type) => TypeDescriptor.GetEditor(DataGridViewColumn, type); 1252EventDescriptorCollection ICustomTypeDescriptor.GetEvents() => TypeDescriptor.GetEvents(DataGridViewColumn); 1254EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[]? attrs) => TypeDescriptor.GetEvents(DataGridViewColumn, attrs!); 1262PropertyDescriptorCollection props = TypeDescriptor.GetProperties(DataGridViewColumn);
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (4)
234properties["Width"] = TypeDescriptor.CreateProperty(typeof(DataGridViewColumnDesigner), prop, []); 245properties["Name"] = TypeDescriptor.CreateProperty(typeof(DataGridViewColumnDesigner), 256properties["Name"] = TypeDescriptor.CreateProperty(typeof(DataGridViewColumnDesigner), 263properties["UserAddedColumn"] = TypeDescriptor.CreateProperty(typeof(DataGridViewColumnDesigner), "UserAddedColumn", typeof(bool),
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
102DataGridViewColumnDesignTimeVisibleAttribute? attr = TypeDescriptor.GetAttributes(t)[typeof(DataGridViewColumnDesignTimeVisibleAttribute)] as DataGridViewColumnDesignTimeVisibleAttribute;
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (2)
105properties["ValueMember"] = TypeDescriptor.CreateProperty(typeof(DataGridViewComboBoxColumnDesigner), property, []); 111properties["DisplayMember"] = TypeDescriptor.CreateProperty(typeof(DataGridViewComboBoxColumnDesigner), property, []);
System\Windows\Forms\Design\DataGridViewDesigner.cs (16)
42PropertyDescriptor? prop = TypeDescriptor.GetProperties(typeof(DataGridViewColumn))["Width"]; 297PropertyDescriptorCollection props = TypeDescriptor.GetProperties(dataGridView); 363properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(DataGridViewDesigner), prop, empty); 403PropertyDescriptor? pd = TypeDescriptor.GetProperties(dataGridViewColumn)["UserAddedColumn"]; 424TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 443PropertyDescriptor? columnsProp = TypeDescriptor.GetProperties(dataGridView)["Columns"]; 463PropertyDescriptor? pd = TypeDescriptor.GetProperties(dataGridViewColumn)["UserAddedColumn"]; 485TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 569PropertyDescriptor? columnsProp = TypeDescriptor.GetProperties(dataGridView)["Columns"]; 581PropertyDescriptor? propertyDescriptor = TypeDescriptor.GetProperties(col)["UserAddedColumn"]; 616TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 653DataGridViewColumn? dataGridViewColumn = TypeDescriptor.CreateInstance(host, columnType, null, null) as DataGridViewColumn; 872PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToAddRows"]; 915PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToDeleteRows"]; 958PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["AllowUserToReorderColumns"]; 1001PropertyDescriptor? prop = TypeDescriptor.GetProperties(dataGridView)["ReadOnly"];
System\Windows\Forms\Design\DataGridViewDesigner.DataGridViewChooseDataSourceActionList.cs (1)
48PropertyDescriptor? dataSourceProp = TypeDescriptor.GetProperties(dataGridView)["DataSource"];
System\Windows\Forms\Design\DataMemberFieldEditor.cs (1)
24if (TypeDescriptor.GetProperties(instance)[nameof(ComboBox.DataSource)] is not PropertyDescriptor property)
System\Windows\Forms\Design\DataMemberListEditor.cs (1)
22if (TypeDescriptor.GetProperties(context.Instance)[nameof(ComboBox.DataSource)] is { } dataSourceProperty)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1481ListBindableAttribute? listBindable = TypeDescriptor.GetAttributes(dataSource)[typeof(ListBindableAttribute)] as ListBindableAttribute;
System\Windows\Forms\Design\DesignerExtenders.NameExtenderProvider.cs (1)
59if (!TypeDescriptor.GetAttributes(o)[typeof(InheritanceAttribute)]?.Equals(InheritanceAttribute.NotInherited) ?? false)
System\Windows\Forms\Design\DesignerExtenders.NameInheritedExtenderProvider.cs (1)
39if (!TypeDescriptor.GetAttributes(o)[typeof(InheritanceAttribute)]?.Equals(InheritanceAttribute.NotInherited) ?? false)
System\Windows\Forms\Design\DocumentDesigner.cs (12)
475PropertyDescriptor prop = TypeDescriptor.GetProperties(Component)["Locked"]; 482prop = TypeDescriptor.GetProperties(Component)["AutoSize"]; 489prop = TypeDescriptor.GetProperties(Component)["AutoSizeMode"]; 634PropertyDescriptor backProp = TypeDescriptor.GetProperties(Component.GetType())["BackColor"]; 854if (!addControl || !TypeDescriptor.GetAttributes(component).Contains(DesignTimeVisibleAttribute.Yes)) 1198properties["TrayHeight"] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), "TrayHeight", typeof(int), 1204properties["TrayLargeIcon"] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), "TrayLargeIcon", typeof(bool), 1210properties["DoubleBuffered"] = TypeDescriptor.CreateProperty(typeof(Control), "DoubleBuffered", typeof(bool), 1238properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), prop, empty); 1245properties["AutoScaleDimensions"] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible); 1251properties["AutoScaleMode"] = TypeDescriptor.CreateProperty(typeof(DocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible, BrowsableAttribute.Yes); 1259properties[noBrowseProps[i]] = TypeDescriptor.CreateProperty(prop.ComponentType, prop, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
System\Windows\Forms\Design\EditorServiceContext.cs (3)
27prop = TypeDescriptor.GetDefaultProperty(designer.Component); 46PropertyDescriptor descriptor = TypeDescriptor.GetProperties(objectToChange)[propName]!; 147CollectionEditor? itemsEditor = TypeDescriptor.GetEditor(propertyValue, typeof(UITypeEditor)) as CollectionEditor;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (5)
80TypeDescriptor.AddAttributes(child, InheritanceAttribute.InheritedReadOnly); 95properties["FlowDirection"] = TypeDescriptor.CreateProperty(typeof(FlowLayoutPanelDesigner), flowDirection, []); 340string name = TypeDescriptor.GetComponentName(_dragControls[0]); 591PropertyDescriptor controlsProperty = TypeDescriptor.GetProperties(Component)["Controls"]; 724PropertyDescriptor controlsProperty = TypeDescriptor.GetProperties(Component)["Controls"];
System\Windows\Forms\Design\FormatStringEditor.cs (11)
47changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["Format"]); 48changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["NullValue"]); 49changeService.OnComponentChanging(cellStyle, TypeDescriptor.GetProperties(cellStyle)["FormatProvider"]); 53changeService.OnComponentChanging(component, TypeDescriptor.GetProperties(component)["FormatString"]); 54changeService.OnComponentChanging(component, TypeDescriptor.GetProperties(component)["FormatInfo"]); 67TypeDescriptor.Refresh(component); 73changeService.OnComponentChanged(cellStyle, TypeDescriptor.GetProperties(cellStyle)["Format"]); 74changeService.OnComponentChanged(cellStyle, TypeDescriptor.GetProperties(cellStyle)["NullValue"]); 75changeService.OnComponentChanged(cellStyle, TypeDescriptor.GetProperties(cellStyle)["FormatProvider"]); 79changeService.OnComponentChanged(component, TypeDescriptor.GetProperties(component)["FormatString"]); 80changeService.OnComponentChanged(component, TypeDescriptor.GetProperties(component)["FormatInfo"]);
System\Windows\Forms\Design\FormDocumentDesigner.cs (5)
236PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component); 322PropertyDescriptor windowStateProp = TypeDescriptor.GetProperties(component.GetType())["WindowState"]; 468properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(FormDocumentDesigner), prop, empty); 476properties["AutoScaleBaseSize"] = TypeDescriptor.CreateProperty(typeof(FormDocumentDesigner), prop, DesignerSerializationVisibilityAttribute.Visible); 483properties["ClientSize"] = TypeDescriptor.CreateProperty(typeof(FormDocumentDesigner), prop, new DefaultValueAttribute(new Size(-1, -1)));
System\Windows\Forms\Design\ImageCollectionEditor.cs (3)
37PropertyDescriptor property = TypeDescriptor.GetProperties(value)["Name"]; 53text = TypeDescriptor.GetConverter(value).ConvertToString(value); 65UITypeEditor editor = (UITypeEditor)TypeDescriptor.GetEditor(typeof(ImageListImage), typeof(UITypeEditor));
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
63PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(instance); 162PropertyDescriptor? property = TypeDescriptor.GetProperties(parentInstance)[pathInfo[i]];
System\Windows\Forms\Design\ImageListActionList.cs (2)
29TypeDescriptor.GetProperties(Component)[nameof(ColorDepth)]?.SetValue(Component, value); 41TypeDescriptor.GetProperties(Component)[nameof(ImageSize)]?.SetValue(Component, value);
System\Windows\Forms\Design\ImageListDesigner.cs (2)
118properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ImageListDesigner), prop, []); 129properties["Images"] = TypeDescriptor.CreateProperty(typeof(ImageListDesigner), "Images", typeof(OriginalImageCollection), attrs);
System\Windows\Forms\Design\LabelDesigner.cs (2)
33PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component); 145PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\LinkAreaEditor.cs (1)
37property = TypeDescriptor.GetProperties(context.Instance)["Text"];
System\Windows\Forms\Design\ListBoxDesigner.cs (2)
67properties[nameof(IntegralHeight)] = TypeDescriptor.CreateProperty(typeof(ListBoxDesigner), integralHeightProp, []); 72properties[nameof(Dock)] = TypeDescriptor.CreateProperty(typeof(ListBoxDesigner), dockProp, []);
System\Windows\Forms\Design\ListViewActionList.cs (3)
33set => TypeDescriptor.GetProperties(_listView)[nameof(View)]!.SetValue(Component, value); 39set => TypeDescriptor.GetProperties(_listView)[nameof(LargeImageList)]!.SetValue(Component, value); 45set => TypeDescriptor.GetProperties(_listView)[nameof(SmallImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\ListViewDesigner.cs (2)
118properties["OwnerDraw"] = TypeDescriptor.CreateProperty(typeof(ListViewDesigner), ownerDrawProp, []); 125properties["View"] = TypeDescriptor.CreateProperty(typeof(ListViewDesigner), viewProp, []);
System\Windows\Forms\Design\ListViewItemCollectionEditor.cs (2)
32PropertyDescriptor property = TypeDescriptor.GetDefaultProperty(CollectionType); 43text = TypeDescriptor.GetConverter(value).ConvertToString(value);
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (2)
50PropertyDescriptor property = TypeDescriptor.GetDefaultProperty(CollectionType); 62text = TypeDescriptor.GetConverter(value).ConvertToString(value);
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
179properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(MaskedTextBoxDesigner), prop, empty);
System\Windows\Forms\Design\MaskedTextBoxDesignerActionList.cs (1)
51PropertyDescriptor? maskProperty = TypeDescriptor.GetProperties(_maskedTextBox)["Mask"];
System\Windows\Forms\Design\OleDragDropHandler.cs (7)
264if (!TypeDescriptor.GetAttributes(comps[i]).Contains(DesignTimeVisibleAttribute.Yes)) 283PropertyDescriptor? prop = TypeDescriptor.GetProperties(rootComponent)["Language"]; 355PropertyDescriptor? loc = TypeDescriptor.GetProperties(comps[i])["Location"]; 476InheritanceAttribute attr = (InheritanceAttribute)TypeDescriptor.GetAttributes(components[i])[typeof(InheritanceAttribute)]!; 761PropertyDescriptor? loc = TypeDescriptor.GetProperties(comp)["TrayLocation"]; 763loc ??= TypeDescriptor.GetProperties(comp)["Location"]; 807if (TypeDescriptor.GetAttributes(comp).Contains(DesignTimeVisibleAttribute.Yes))
System\Windows\Forms\Design\ParentControlDesigner.cs (19)
556PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Control)["Controls"]; 563PropertyDescriptorCollection props = TypeDescriptor.GetProperties(newChild); 938PropertyDescriptor prop = TypeDescriptor.GetProperties(component)["AutoSize"]; 948prop = TypeDescriptor.GetProperties(component)["PreferredSize"]; 961prop = TypeDescriptor.GetProperties(component)["Size"]; 1331_changeService.OnComponentChanging(Control, TypeDescriptor.GetProperties(Control)["Controls"]); 1343_changeService.OnComponentChanged(Control, TypeDescriptor.GetProperties(Control)["Controls"]); 1361_changeService.OnComponentChanging(Control, TypeDescriptor.GetProperties(Control)["Controls"]); 1525InheritanceAttribute attr = (InheritanceAttribute)TypeDescriptor.GetAttributes(comp)[typeof(InheritanceAttribute)]; 2095properties["DrawGrid"] = TypeDescriptor.CreateProperty(typeof(ParentControlDesigner), "DrawGrid", typeof(bool), 2101properties["SnapToGrid"] = TypeDescriptor.CreateProperty(typeof(ParentControlDesigner), "SnapToGrid", typeof(bool), 2107properties["GridSize"] = TypeDescriptor.CreateProperty(typeof(ParentControlDesigner), "GridSize", typeof(Size), 2115properties["CurrentGridSize"] = TypeDescriptor.CreateProperty(typeof(ParentControlDesigner), "CurrentGridSize", typeof(Size), 2131PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(newParent)["Controls"]; 2132PropertyDescriptor locationProp = TypeDescriptor.GetProperties(newParent)["Location"]; 2151InheritanceAttribute inheritanceAttribute = (InheritanceAttribute)TypeDescriptor.GetAttributes(control)[typeof(InheritanceAttribute)]; 2158PropertyDescriptor locProp = TypeDescriptor.GetProperties(control)["Location"]; 2397PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parent)["Controls"]; 2477designer = TypeDescriptor.CreateDesigner(component, typeof(IDesigner));
System\Windows\Forms\Design\PictureBoxActionList.cs (1)
24set => TypeDescriptor.GetProperties(_pictureBox)[nameof(PictureBox.SizeMode)]!.SetValue(Component, value);
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
88PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\RadioButtonDesigner.cs (1)
19PropertyDescriptor? prop = TypeDescriptor.GetProperties(Component)["TabStop"];
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
80properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(RichTextBoxDesigner), prop, empty);
System\Windows\Forms\Design\SelectionUIHandler.cs (12)
364PropertyDescriptor? boundsProp = TypeDescriptor.GetProperties(components[i])["Bounds"]; 394PropertyDescriptor? trayProp = TypeDescriptor.GetProperties(components[i])["TrayLocation"]; 406PropertyDescriptor? leftProp = TypeDescriptor.GetProperties(components[i])["Left"]; 407PropertyDescriptor? topProp = TypeDescriptor.GetProperties(components[i])["Top"]; 436PropertyDescriptor? locationProp = TypeDescriptor.GetProperties(components[i])["Location"]; 456PropertyDescriptor? widthProp = TypeDescriptor.GetProperties(components[i])["Width"]; 457PropertyDescriptor? heightProp = TypeDescriptor.GetProperties(components[i])["Height"]; 517cs.OnComponentChanging(c, TypeDescriptor.GetProperties(c)["Location"]); 518PropertyDescriptor? sizeProp = TypeDescriptor.GetProperties(c)["Size"]; 522sizeProp = TypeDescriptor.GetProperties(c)["ClientSize"]; 593PropertyDescriptor? sizeProp = TypeDescriptor.GetProperties(control)["Size"]; 594PropertyDescriptor? locProp = TypeDescriptor.GetProperties(control)["Location"];
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
62private TypeConverter KeysConverter => _keysConverter ??= TypeDescriptor.GetConverter(typeof(Keys));
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
311RaiseComponentChanging(TypeDescriptor.GetProperties(_splitContainer!)["SplitterDistance"]); 312RaiseComponentChanged(TypeDescriptor.GetProperties(_splitContainer!)["SplitterDistance"], oldValue: null, newValue: null);
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (2)
28PropertyDescriptor? orientationProp = TypeDescriptor.GetProperties(_ownerComponent)["Orientation"]; 50PropertyDescriptor? orientationProp = TypeDescriptor.GetProperties(_ownerComponent!)["Orientation"];
System\Windows\Forms\Design\SplitterPanelDesigner.cs (3)
30? (InheritanceAttribute?)TypeDescriptor.GetAttributes(_splitterPanel.Parent)[typeof(InheritanceAttribute)] 118PropertyDescriptor? lockedProp = TypeDescriptor.GetProperties(component)["Locked"]; 233properties[de.Key] = TypeDescriptor.CreateProperty(descriptor.ComponentType, descriptor, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden);
System\Windows\Forms\Design\StandardMenuStripVerb.cs (7)
177PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)["Image"]; 200MemberDescriptor member = TypeDescriptor.GetProperties(rootItem)["DropDownItems"]; 213MemberDescriptor topMember = TypeDescriptor.GetProperties(tool)["Items"]; 317PropertyDescriptor displayStyleProperty = TypeDescriptor.GetProperties(item)["DisplayStyle"]; 321PropertyDescriptor textProperty = TypeDescriptor.GetProperties(item)["Text"]; 337PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)["Image"]; 351MemberDescriptor topMember = TypeDescriptor.GetProperties(tool)["Items"];
System\Windows\Forms\Design\StyleEditorForm.cs (3)
109_rowStyleProp = TypeDescriptor.GetProperties(_tableLayoutPanel)["RowStyles"]; 110_colStyleProp = TypeDescriptor.GetProperties(_tableLayoutPanel)["ColumnStyles"]; 1052PropertyDescriptor childProperty = TypeDescriptor.GetProperties(_tableLayoutPanel)[nameof(TableLayoutPanel.Controls)];
System\Windows\Forms\Design\TabControlDesigner.cs (7)
99MemberDescriptor member = TypeDescriptor.GetProperties(component: Component)["Controls"]; 245MemberDescriptor member = TypeDescriptor.GetProperties(tc)["Controls"]; 258PropertyDescriptor nameProp = TypeDescriptor.GetProperties(page)["Name"]; 266PropertyDescriptor textProperty = TypeDescriptor.GetProperties(page)["Text"]; 271PropertyDescriptor styleProp = TypeDescriptor.GetProperties(page)["UseVisualStyleBackColor"]; 315MemberDescriptor member = TypeDescriptor.GetProperties(Component)["Controls"]; 460properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(TabControlDesigner), prop, empty);
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
52PropertyDescriptor? lsProp = TypeDescriptor.GetProperties(panel)[LayoutSettingsPropName];
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (29)
96PropertyDescriptor prop = TypeDescriptor.GetProperties(host.RootComponent)["Localizable"]; 468PropertyDescriptor rowProp = TypeDescriptor.GetProperties(Table)["RowCount"]; 476PropertyDescriptor colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"]; 489PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Table)["Controls"]; 639PropertyDescriptor colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"]; 642PropertyDescriptor rowProp = TypeDescriptor.GetProperties(Table)["RowCount"]; 1057PropertyDescriptor prop = TypeDescriptor.GetProperties(Component)["Locked"]; 1169_rowStyleProp = TypeDescriptor.GetProperties(Table)["RowStyles"]; 1170_colStyleProp = TypeDescriptor.GetProperties(Table)["ColumnStyles"]; 1177TypeDescriptor.AddAttributes(Control.Controls[i], InheritanceAttribute.InheritedReadOnly); 1359PropertyDescriptor columnSpan = TypeDescriptor.GetProperties(dragControl)["ColumnSpan"]; 1360PropertyDescriptor rowSpan = TypeDescriptor.GetProperties(dragControl)["RowSpan"]; 1395AttributeCollection attribs = TypeDescriptor.GetAttributes(Component.GetType()); 1430PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Component)["Controls"]; 1456PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(Component)["Controls"]; 1663PropertyDescriptor rowProp = TypeDescriptor.GetProperties(Table)["RowCount"]; 1675PropertyDescriptor colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"]; 1698PropertyDescriptor childProp = TypeDescriptor.GetProperties(Table)["Controls"]; 1704PropertyDescriptor prop = TypeDescriptor.GetProperties(child)[isRow ? "Row" : "Column"]; 1705PropertyDescriptor spanProp = TypeDescriptor.GetProperties(child)[isRow ? "RowSpan" : "ColumnSpan"]; 1773PropertyDescriptor childProp = TypeDescriptor.GetProperties(Table)["Controls"]; 1779PropertyDescriptor prop = TypeDescriptor.GetProperties(child)[isRow ? "Row" : "Column"]; 1780PropertyDescriptor spanProp = TypeDescriptor.GetProperties(child)[isRow ? "RowSpan" : "ColumnSpan"]; 1828PropertyDescriptor rowProp = TypeDescriptor.GetProperties(Table)["RowCount"]; 1840PropertyDescriptor colProp = TypeDescriptor.GetProperties(Table)["ColumnCount"]; 1882PropertyDescriptor childProp = TypeDescriptor.GetProperties(Table)["Controls"]; 2089properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(TableLayoutPanelDesigner), prop, attribs); 2102properties["Controls"] = TypeDescriptor.CreateProperty(typeof(TableLayoutPanelDesigner), "Controls", typeof(DesignerTableLayoutControlCollection), attrs); 2197TypeDescriptor.GetAttributes(_realCollection[i]).Contains(InheritanceAttribute.NotInherited))
System\Windows\Forms\Design\TabOrder.cs (1)
450PropertyDescriptor? prop = TypeDescriptor.GetProperties(control)["TabIndex"];
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (3)
94PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(component)["Image"]; 101PropertyDescriptor dispProperty = TypeDescriptor.GetProperties(component)["DisplayStyle"]; 105PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(component)["ImageTransparentColor"];
System\Windows\Forms\Design\TextBoxActionList.cs (1)
22set => TypeDescriptor.GetProperties(_textBox)[nameof(Multiline)]!.SetValue(Component, value);
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (6)
31PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component); 77return TypeDescriptor.GetProperties(typeof(TextBoxBase))["Text"]!.ShouldSerializeValue(Component); 93PropertyDescriptor? textProp = TypeDescriptor.GetProperties(Component)["Text"]; 114properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(TextBoxBaseDesigner), prop, []); 133PropertyDescriptor? prop = TypeDescriptor.GetProperties(component)["Multiline"]; 138PropertyDescriptor? propAuto = TypeDescriptor.GetProperties(component)["AutoSize"];
System\Windows\Forms\Design\TextBoxDesigner.cs (1)
60properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(TextBoxDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripActionList.cs (2)
54PropertyDescriptor? getProperty = TypeDescriptor.GetProperties(_toolStrip)[propertyName]; 62PropertyDescriptor? changingProperty = TypeDescriptor.GetProperties(_toolStrip)[propertyName];
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
593PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(newItem)[nameof(Image)]; 600PropertyDescriptor displayProperty = TypeDescriptor.GetProperties(newItem)["DisplayStyle"]; 603PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(newItem)["ImageTransparentColor"];
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (5)
379TypeDescriptor.AddAttributes(_bottomToolStripPanel, bottomToolboxBitmapAttribute, new DescriptionAttribute("bottom")); 380TypeDescriptor.AddAttributes(_rightToolStripPanel, rightToolboxBitmapAttribute, new DescriptionAttribute("right")); 381TypeDescriptor.AddAttributes(_leftToolStripPanel, leftToolboxBitmapAttribute, new DescriptionAttribute("left")); 382TypeDescriptor.AddAttributes(_topToolStripPanel, topToolboxBitmapAttribute, new DescriptionAttribute("top")); 451properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripContainerDesigner), propertyDescriptor, empty);
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
95events[noBrowseEvents[i]] = TypeDescriptor.CreateEvent(eventDescriptor.ComponentType, eventDescriptor, BrowsableAttribute.No);
System\Windows\Forms\Design\ToolStripCustomTypeDescriptor.cs (2)
42PropertyDescriptorCollection retColl = TypeDescriptor.GetProperties(_instance); 76PropertyDescriptorCollection retColl = TypeDescriptor.GetProperties(_instance);
System\Windows\Forms\Design\ToolStripDesigner.cs (20)
180(InheritanceAttribute)TypeDescriptor.GetAttributes(ToolStrip)[typeof(InheritanceAttribute)]; 558PropertyDescriptor textProperty = TypeDescriptor.GetProperties(item)[nameof(Text)]; 577PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)[nameof(Image)]; 584PropertyDescriptor displayProperty = TypeDescriptor.GetProperties(item)["DisplayStyle"]; 588PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(item)["ImageTransparentColor"]; 879RaiseComponentChanging(TypeDescriptor.GetProperties(Component)[nameof(Items)]); 901RaiseComponentChanged(TypeDescriptor.GetProperties(Component)[nameof(Items)], null, null); 1013RaiseComponentChanged(TypeDescriptor.GetProperties(Component)[nameof(Items)], null, null); 1082RaiseComponentChanging(TypeDescriptor.GetProperties(Component)[nameof(Items)]); 1447new EditorServiceContext(this, TypeDescriptor.GetProperties(Component)[nameof(Items)], SR.ToolStripItemCollectionEditorVerb); 1501PropertyDescriptor dockProp = TypeDescriptor.GetProperties(ToolStrip)["Dock"]; 1522PropertyDescriptor mainMenuStripProperty = TypeDescriptor.GetProperties(parentForm)["MainMenuStrip"]; 1534PropertyDescriptor controlsProp = TypeDescriptor.GetProperties(parentPanel)["Controls"]; 1543PropertyDescriptor locationProp = TypeDescriptor.GetProperties(ToolStrip)["Location"]; 1861string name = TypeDescriptor.GetComponentName(dragComponents[0]); 1880changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)[nameof(Items)]); 1937changeService?.OnComponentChanged(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)[nameof(Items)]); 1944changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)[nameof(Items)]); 1945changeService.OnComponentChanged(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)[nameof(Items)]); 2233properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
286ToolStripItemDesignerAvailabilityAttribute visibilityAttribute = (ToolStripItemDesignerAvailabilityAttribute)TypeDescriptor.GetAttributes(t)[typeof(ToolStripItemDesignerAvailabilityAttribute)];
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
399new EditorServiceContext(this, TypeDescriptor.GetProperties(Component)["Items"], SR.ToolStripItemCollectionEditorVerb); 557properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripDropDownDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (9)
660string name = TypeDescriptor.GetComponentName(dragComponents[0]); 681changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 685changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 757changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 761changeService.OnComponentChanged(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 770changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 771changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 775changeService.OnComponentChanging(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]); 776changeService.OnComponentChanged(parentToolStrip, TypeDescriptor.GetProperties(parentToolStrip)["Items"]);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
212_verbManager = new CollectionEditVerbManager(SR.ToolStripDropDownItemCollectionEditorVerb, itemDesigner, TypeDescriptor.GetProperties(_currentItem)["DropDownItems"], false); 568PropertyDescriptor getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName]; 584PropertyDescriptor getProperty = TypeDescriptor.GetProperties(_currentItem)[propertyName]; 602PropertyDescriptor changingProperty = TypeDescriptor.GetProperties(target)[propertyName];
System\Windows\Forms\Design\ToolStripItemDesigner.cs (15)
371PropertyDescriptor textProp = TypeDescriptor.GetProperties(ToolStripItem)["Text"]; 516changeService.OnComponentChanging(parent, TypeDescriptor.GetProperties(parent)["DropDownItems"]); 538changeService.OnComponentChanged(parent, TypeDescriptor.GetProperties(parent)["DropDownItems"]); 663PropertyDescriptor pd = TypeDescriptor.GetProperties(ToolStripItem)["Text"]; 681PropertyDescriptor textProp = TypeDescriptor.GetProperties(Component)["Text"]; 764changeService.OnComponentChanging(parent, TypeDescriptor.GetProperties(parent)["Items"]); 768changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 769changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 803PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(newItem)["Image"]; 810PropertyDescriptor dispProperty = TypeDescriptor.GetProperties(newItem)["DisplayStyle"]; 814PropertyDescriptor imageTransProperty = TypeDescriptor.GetProperties(newItem)["ImageTransparentColor"]; 824changeService.OnComponentChanged(parent, TypeDescriptor.GetProperties(parent)["Items"]); 828changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 829changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 1025properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripItemDesigner), prop, empty);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
1088InheritanceAttribute ia = (InheritanceAttribute)TypeDescriptor.GetAttributes(tool)[typeof(InheritanceAttribute)]; 1116InheritanceAttribute ia = (InheritanceAttribute)TypeDescriptor.GetAttributes(tool)[typeof(InheritanceAttribute)];
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (14)
536PropertyDescriptor textProp = TypeDescriptor.GetProperties(editedItem)["Text"]; 875PropertyDescriptor textProperty = TypeDescriptor.GetProperties(newItem)["Text"]; 1650MemberDescriptor member = TypeDescriptor.GetProperties(MenuItem.DropDown)["Items"]; 1656RaiseComponentChanging(TypeDescriptor.GetProperties(MenuItem)["DropDownItems"]); 1753MemberDescriptor member = TypeDescriptor.GetProperties(MenuItem.DropDown)["Items"]; 1759RaiseComponentChanged(TypeDescriptor.GetProperties(MenuItem)["DropDownItems"], null, null); 1859RaiseComponentChanged(TypeDescriptor.GetProperties(ownerItem)["DropDownItems"], null, null); 1946RaiseComponentChanging(TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2237properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripMenuItemDesigner), prop, empty); 2648string name = TypeDescriptor.GetComponentName(dragComponents[0]); 2666changeService?.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2717changeService?.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2724changeService.OnComponentChanging(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]); 2725changeService.OnComponentChanged(ownerItem, TypeDescriptor.GetProperties(ownerItem)["DropDownItems"]);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (4)
371PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(e.Control)["Dock"]; 510events[noBrowseEvents[i]] = TypeDescriptor.CreateEvent(eventDescriptor.ComponentType, eventDescriptor, BrowsableAttribute.No); 553properties[noBrowseProps[i]] = TypeDescriptor.CreateProperty(propertyDescriptor.ComponentType, propertyDescriptor, BrowsableAttribute.No, DesignerSerializationVisibilityAttribute.Hidden); 565properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(ToolStripPanelDesigner), propertyDescriptor, empty);
System\Windows\Forms\Design\TrackBarDesigner.cs (1)
43PropertyDescriptor? prop = TypeDescriptor.GetProperties(component)[propertyName];
System\Windows\Forms\Design\TreeViewActionList.cs (1)
26set => TypeDescriptor.GetProperties(_treeView)[nameof(TreeView.ImageList)]!.SetValue(Component, value);
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
45PropertyDescriptorCollection props = TypeDescriptor.GetProperties(Component);
System\Windows\Forms\Design\UserControlDocumentDesigner.cs (1)
54properties[shadowProps[i]] = TypeDescriptor.CreateProperty(typeof(UserControlDocumentDesigner), prop, []);
System.Windows.Forms.Primitives (9)
System\ComponentModel\TypeConverterHelper.cs (3)
43converter = TypeDescriptor.GetConverter(typeof(T)); 48TypeDescriptor.RegisterType<T>(); 49converter = TypeDescriptor.GetConverterFromRegisteredType(typeof(T));
System\ComponentModel\TypeDescriptorHelper.cs (5)
13attribute = TypeDescriptor.GetAttributes(component)[typeof(T)] as T; 22attribute = TypeDescriptor.GetAttributes(componentType)[typeof(T)] as T; 28return (T?)TypeDescriptor.GetEditor(type, typeof(T)); 33editor = TypeDescriptor.GetEditor(component, typeof(T)) as T; 42PropertyDescriptor? property = TypeDescriptor.GetProperties(component)[name];
System\Windows\Forms\PaddingConverter.cs (1)
114PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(typeof(Padding), attributes);
System.Xaml (4)
System\Windows\Markup\ValueSerializer.cs (2)
114AttributeCollection attributes = TypeDescriptor.GetAttributes(type); 275TypeDescriptor.Refreshed += TypeDescriptorRefreshed;
System\Xaml\Schema\BuiltInValueConverter.cs (2)
194stdConverter = TypeDescriptor.GetConverter(typeof(Uri)); 218s_Uri = new BuiltInValueConverter<TypeConverter>(stdConverter.GetType(), () => TypeDescriptor.GetConverter(typeof(Uri)));
tlens (1)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (1)
535TypeConverter conv = TypeDescriptor.GetConverter(targetType);