1 interface inheriting from ITypeDescriptorContext
System.Xaml (1)
35 implementations of ITypeDescriptorContext
PresentationBuildTasks (1)
PresentationCore.Tests (3)
PresentationFramework (7)
ReachFramework (1)
System.Drawing.Common.Tests (1)
System.Windows.Forms (1)
System.Windows.Forms.Design (3)
System.Windows.Forms.Design.Tests (1)
System.Xaml (1)
System.Xaml.Tests (7)
WindowsBase.Tests (9)
1445 references to ITypeDescriptorContext
dotnet-svcutil-lib (3)
Microsoft.AspNetCore.Components.Tests (6)
Microsoft.AspNetCore.Http.Abstractions (3)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.Maui (55)
Converters\FlexEnumsConverters.cs (28)
12 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
15 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
18 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
39 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
51 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
54 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
57 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
74 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
86 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
89 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
92 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
113 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
125 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
128 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
131 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
148 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
160 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
163 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
166 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
183 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
195 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
198 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
201 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
216 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
228 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
231 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
234 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
258 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Microsoft.Maui.Controls (164)
Microsoft.Maui.Controls.DesignTools (25)
Microsoft.Maui.Graphics (31)
netstandard (1)
PresentationBuildTasks (5)
PresentationCore (188)
MS\Internal\IListConverters.cs (16)
29public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
37public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
45public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value)
65public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
77internal abstract object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value);
82internal abstract object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType);
94internal sealed override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
108internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
139internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
150internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
180internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
191internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
221internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
233internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
266internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value)
271internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
PresentationCore.Tests (6)
PresentationFramework (131)
ReachFramework (17)
System (1)
System.CodeDom (12)
System.ComponentModel.TypeConverter (167)
System\ComponentModel\NullableConverter.cs (12)
41public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
58public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value)
79public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
100public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
132public override object? CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues)
148public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context)
163public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
177public override bool GetPropertiesSupported(ITypeDescriptorContext? context)
190public override StandardValuesCollection? GetStandardValues(ITypeDescriptorContext? context)
219public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context)
233public override bool GetStandardValuesSupported(ITypeDescriptorContext? context)
246public override bool IsValid(ITypeDescriptorContext? context, object value)
System\ComponentModel\TypeConverter.cs (19)
28public virtual bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
41public virtual bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
54public virtual object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
74public object? ConvertFromInvariantString(ITypeDescriptorContext? context, string text)
87public object? ConvertFromString(ITypeDescriptorContext? context, string text)
95public object? ConvertFromString(ITypeDescriptorContext? context, CultureInfo? culture, string text)
113public virtual object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
147public string? ConvertToInvariantString(ITypeDescriptorContext? context, object? value)
163public string? ConvertToString(ITypeDescriptorContext? context, object? value)
171public string? ConvertToString(ITypeDescriptorContext? context, CultureInfo? culture, object? value)
187public virtual object? CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues) => null;
221public virtual bool GetCreateInstanceSupported(ITypeDescriptorContext? context) => false;
237public PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value)
249public virtual PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
262public virtual bool GetPropertiesSupported(ITypeDescriptorContext? context) => false;
272public virtual StandardValuesCollection? GetStandardValues(ITypeDescriptorContext? context) => null;
285public virtual bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => false;
297public virtual bool GetStandardValuesSupported(ITypeDescriptorContext? context) => false;
307public virtual bool IsValid(ITypeDescriptorContext? context, object value)
System\Drawing\PointConverter.cs (8)
15public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
25public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
61public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
95public override object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues)
110public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) => true;
115public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object? value, Attribute[]? attributes)
121public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\Drawing\RectangleConverter.cs (8)
15public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
25public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
59public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
98public override object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues)
116public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) => true;
121public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object? value, Attribute[]? attributes)
127public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\Drawing\SizeConverter.cs (8)
15public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
25public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
59public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
93public override object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues)
108public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) => true;
113public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
119public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\Drawing\SizeFConverter.cs (8)
15public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
25public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
58public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
90public override object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues)
105public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) => true;
110public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
116public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System.Configuration.ConfigurationManager (24)
System.Data.Common (21)
System.Drawing.Common (36)
Special\NotSupported.cs (36)
369public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
370public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
371public override object? ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
372public override object? ConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
373public override object CreateInstance(System.ComponentModel.ITypeDescriptorContext? context, System.Collections.IDictionary propertyValues) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
374public override bool GetCreateInstanceSupported(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
376public override System.ComponentModel.PropertyDescriptorCollection? GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object? value, System.Attribute[]? attributes) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
377public override bool GetPropertiesSupported(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
381public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
382public override object? ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
383public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
384public override bool GetStandardValuesExclusive(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
385public override bool GetStandardValuesSupported(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
392public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
729public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
730public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
731public override object? ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
732public override object? ConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
822public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
823public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
824public override object? ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
825public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
827public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object? value, System.Attribute[]? attributes) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
828public override bool GetPropertiesSupported(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
834public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type? sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
835public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
836public override object? ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
837public override object? ConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
838public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
839public override bool GetStandardValuesSupported(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2735public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2736public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2737public override object? ConvertFrom(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2738public override object? ConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2739public override object CreateInstance(System.ComponentModel.ITypeDescriptorContext? context, System.Collections.IDictionary propertyValues) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2740public override bool GetCreateInstanceSupported(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Windows.Controls.Ribbon (8)
System.Windows.Forms (181)
System.Windows.Forms.Design (114)
System.Windows.Forms.Design.Tests (89)
System.Windows.Forms.Primitives (11)
System.Windows.Forms.Tests (40)
System.Windows.Forms.TestUtilities (3)
System.Windows.Forms.UI.IntegrationTests (1)
System.Xaml (59)
System.Xaml.Tests (22)
System\Windows\Markup\ValueSerializerTests.cs (8)
461public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
467public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? sourceType)
473public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value)
478public override object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
486public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
491public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? sourceType)
499public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
504public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? sourceType)
System\Xaml\Replacements\TypeUriConverterTests.cs (12)
212public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
217public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
225public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
230public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
238public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
243public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
251public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
256public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
264public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
269public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
277public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
282public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
WindowsBase.Tests (6)
WinFormsControlsTest (5)