1 interface inheriting from ITypeDescriptorContext
System.Xaml (1)
System\Windows\Markup\IValueSerializerContext.cs (1)
17public interface IValueSerializerContext : ITypeDescriptorContext
18 implementations of ITypeDescriptorContext
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TypeContext.cs (1)
21internal class TypeConvertContext : ITypeDescriptorContext
PresentationFramework (7)
MS\Internal\Data\DefaultValueConverter.cs (1)
729internal class ValueConverterContext : ITypeDescriptorContext, IUriContext
System\Windows\Controls\ContentPresenter.cs (1)
1134private class TypeContext : ITypeDescriptorContext
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
20internal class DPTypeDescriptorContext : System.ComponentModel.ITypeDescriptorContext
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
56private class DeferredBinaryDeserializerExtensionContext : ITypeDescriptorContext, IFreezeFreezables
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (1)
27private class TypeConverterContext : ITypeDescriptorContext
System\Windows\Markup\TypeContext.cs (1)
21internal class TypeConvertContext : ITypeDescriptorContext
System\Windows\TemplateContent.cs (1)
1414internal class ServiceProviderWrapper : ITypeDescriptorContext, IXamlTypeResolver, IXamlNamespaceResolver, IProvideValueTarget
ReachFramework (1)
Serialization\Manager\XpsTokenContext.cs (1)
24System.ComponentModel.ITypeDescriptorContext
System.Drawing.Common.Tests (1)
System\Drawing\Printing\MarginsConverterTests.cs (1)
148private class MyTypeDescriptorContext : ITypeDescriptorContext
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
18internal abstract partial class GridEntry : GridItem, ITypeDescriptorContext
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.TypeDescriptorContext.cs (1)
8internal sealed class TypeDescriptorContext : ITypeDescriptorContext
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
17internal class CollectionEditVerbManager : IWindowsFormsEditorService, ITypeDescriptorContext
System\Windows\Forms\Design\EditorServiceContext.cs (1)
15internal class EditorServiceContext : IWindowsFormsEditorService, ITypeDescriptorContext
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DataMemberFieldConverterTests.cs (1)
51public class MyTypeDescriptorContext : ITypeDescriptorContext
System.Xaml (1)
System\Xaml\Context\ServiceProviderContext.cs (1)
16internal class ServiceProviderContext : ITypeDescriptorContext, // derives from IServiceProvider
System.Xaml.Tests (2)
System\Windows\Markup\NameReferenceConverterTests.cs (1)
195private class CustomTypeDescriptorContext : ITypeDescriptorContext
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
42private class CustomTypeDescriptorContext : ITypeDescriptorContext
1141 references to ITypeDescriptorContext
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (3)
4613public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 4626public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 4651public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Microsoft.AspNetCore.Components.Tests (6)
BindConverterTest.cs (4)
390public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 400public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 410public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 420public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
EventCallbackFactoryBinderExtensionsTest.cs (2)
690public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 699public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Microsoft.AspNetCore.Http.Abstractions (3)
PathString.cs (3)
514public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 517public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 522public override object? ConvertTo(ITypeDescriptorContext? context,
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
2911public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 2916public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (1)
1131public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (1)
215public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
HeaderModelBinderIntegrationTest.cs (2)
498public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 503public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
SimpleTypeModelBinderIntegrationTest.cs (2)
834public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 839public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Converters\StringEnumConverter.cs (2)
65public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 76public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
netstandard (1)
netstandard.cs (1)
358[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.ITypeDescriptorContext))]
PresentationBuildTasks (5)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1783private CodeExpression GetPropertyValueExpression(ITypeDescriptorContext ctx, Type typeToConvertTo, Object value, string attributeValue)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (2)
2677internal ITypeDescriptorContext TypeContext 2688ITypeDescriptorContext _typeContext;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (2)
1860ITypeDescriptorContext TypeConvertContext 1906ITypeDescriptorContext _typeConvertContext;
PresentationCore (187)
MS\Internal\IListConverters.cs (16)
36public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 44public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 52public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value) 72public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 84internal abstract object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value); 89internal abstract object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType); 101internal sealed override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value) 115internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 146internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value) 157internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 187internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value) 198internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 228internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value) 240internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 273internal override object ConvertFromCore(ITypeDescriptorContext td, CultureInfo ci, string value) 278internal override object ConvertToCore(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Media\TypeConverterHelper.cs (1)
62internal static UriHolder GetUriFromUriContext(ITypeDescriptorContext context, object inputString)
System\Windows\CultureInfoConverter.cs (4)
51public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 65public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 88public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, 118public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\DurationConverter.cs (4)
26public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 45public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 63ITypeDescriptorContext td, 102ITypeDescriptorContext context,
System\Windows\FontStretchConverter.cs (4)
35public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 53public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 70public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value) 103public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\FontStyleConverter.cs (4)
35public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 53public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 70public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value) 103public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\FontWeightConverter.cs (4)
35public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 53public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 70public override object ConvertFrom(ITypeDescriptorContext td, CultureInfo ci, object value) 103public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Ink\StrokeCollectionConverter.cs (5)
45public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 61public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 81public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 125public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 175public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
System\Windows\Input\Command\KeyGestureConverter.cs (4)
36public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 82public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object source) 142public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\Command\MouseActionConverter.cs (4)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 42public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 63public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object source) 92public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\Command\MouseGestureConverter.cs (4)
37public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 57public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object source) 119public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 146public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\CursorConverter.cs (6)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 45public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 60public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) 89public override bool GetStandardValuesSupported(ITypeDescriptorContext context) 101public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 211public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\InputScopeConverter.cs (4)
42public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 66public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 104public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object source) 152public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\InputScopeNameConverter.cs (4)
42public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 66public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 91public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object source) 134public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\XmlLanguageConverter.cs (4)
44public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 58public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 81public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, 111public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\Media\Animation\KeySplineConverter.cs (4)
33public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptor, Type destinationType) 52public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 69ITypeDescriptorContext context, 99ITypeDescriptorContext context,
System\Windows\Media\Animation\KeyTimeConverter.cs (4)
27ITypeDescriptorContext typeDescriptorContext, 47ITypeDescriptorContext typeDescriptorContext, 67ITypeDescriptorContext typeDescriptorContext, 130ITypeDescriptorContext typeDescriptorContext,
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (4)
32public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 51public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 69ITypeDescriptorContext td, 112ITypeDescriptorContext context,
System\Windows\Media\Brush.cs (1)
66internal static Brush Parse(string value, ITypeDescriptorContext context)
System\Windows\Media\ColorConverter.cs (4)
32public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 80public override object ConvertFrom(ITypeDescriptorContext td, System.Globalization.CultureInfo ci, object value) 109public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\FontFamilyConverter.cs (4)
40public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 54public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 87public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo cultureInfo, object o) 135public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\BrushConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 142public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\CacheModeConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 142public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\DoubleCollectionConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 97public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 128public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\GeometryConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 142public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\Int32CollectionConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 97public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 128public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 142public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\PointCollectionConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 97public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 128public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\TransformConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 111public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 142public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\VectorCollectionConverter.cs (4)
56public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 97public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 128public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\ImageSourceConverter.cs (4)
44public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 100public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 206public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\MediaTimeline.cs (2)
56internal MediaTimeline(ITypeDescriptorContext context, Uri source) : this() 269internal ITypeDescriptorContext _context = null;
System\Windows\Media\Parsers.cs (3)
98static private Color ParseContextColor(string trimmedColor, IFormatProvider formatProvider, ITypeDescriptorContext context) 206internal static Color ParseColor(string color, IFormatProvider formatProvider, ITypeDescriptorContext context) 254internal static Brush ParseBrush(string brush, IFormatProvider formatProvider, ITypeDescriptorContext context)
System\Windows\Media\PixelFormatConverter.cs (4)
38public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 83public override object ConvertFrom(ITypeDescriptorContext td, System.Globalization.CultureInfo ci, object o) 101public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\RequestCachePolicyConverter.cs (4)
33public override bool CanConvertFrom(ITypeDescriptorContext td, Type t) 53public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 74public override object ConvertFrom(ITypeDescriptorContext td, System.Globalization.CultureInfo ci, object value) 111public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\Media\SolidColorBrush.cs (1)
150internal static object DeserializeFrom(BinaryReader reader, ITypeDescriptorContext context)
System\Windows\Media3D\Generated\Matrix3DConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Point3DConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Point4DConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\QuaternionConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Rect3DConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Size3DConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Vector3DConverter.cs (4)
52public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 124public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\TextDecorationCollectionConverter.cs (4)
36public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 55public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 72public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object input) 180public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
PresentationFramework (131)
System\Windows\ComponentResourceKeyConverter.cs (4)
33public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 52public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 75public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 98public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Condition.cs (1)
314private ITypeDescriptorContext _serviceProvider = null;
System\Windows\Controls\ContentPresenter.cs (5)
1142IContainer ITypeDescriptorContext.Container { get { return null; } } 1143object ITypeDescriptorContext.Instance { get { return _instance; } } 1144PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor { get { return null; } } 1145void ITypeDescriptorContext.OnComponentChanged() {} 1146bool ITypeDescriptorContext.OnComponentChanging() { return false; }
System\Windows\Controls\DataGridLengthConverter.cs (4)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 53public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 72public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 128ITypeDescriptorContext context,
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (4)
40public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 71public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 101public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source) 136public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
System\Windows\CornerRadiusConverter.cs (4)
42public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 73public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 103public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source) 133public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
System\Windows\DeferrableContentConverter.cs (2)
33public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 43public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
System\Windows\DialogResultConverter.cs (4)
37public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 49public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 59public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, 70public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\Documents\DPTypeDescriptorContext.cs (5)
150System.ComponentModel.IContainer System.ComponentModel.ITypeDescriptorContext.Container 156object System.ComponentModel.ITypeDescriptorContext.Instance 164void System.ComponentModel.ITypeDescriptorContext.OnComponentChanged() 168bool System.ComponentModel.ITypeDescriptorContext.OnComponentChanging() 173System.ComponentModel.PropertyDescriptor System.ComponentModel.ITypeDescriptorContext.PropertyDescriptor
System\Windows\DynamicResourceExtensionConverter.cs (2)
31public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 43public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\Windows\EventSetterHandlerConverter.cs (4)
26public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 42public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 50public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, 90public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\FigureLengthConverter.cs (4)
51ITypeDescriptorContext typeDescriptorContext, 85ITypeDescriptorContext typeDescriptorContext, 109ITypeDescriptorContext typeDescriptorContext, 145ITypeDescriptorContext typeDescriptorContext,
System\Windows\FontSizeConverter.cs (4)
42public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 56public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 73public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 110public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\GridLengthConverter.cs (4)
53ITypeDescriptorContext typeDescriptorContext, 87ITypeDescriptorContext typeDescriptorContext, 111ITypeDescriptorContext typeDescriptorContext, 164ITypeDescriptorContext typeDescriptorContext,
System\Windows\Input\Command\CommandConverter.cs (5)
49public override bool CanConvertFrom( ITypeDescriptorContext context, Type sourceType ) 68public override bool CanConvertTo( ITypeDescriptorContext context, Type destinationType ) 96public override object ConvertFrom( ITypeDescriptorContext context, CultureInfo culture, object source ) 173public override object ConvertTo( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) 214private Type GetTypeFromContext( ITypeDescriptorContext context, string typeName )
System\Windows\LengthConverter.cs (4)
49public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 79public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 109public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, 139public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (5)
79void ITypeDescriptorContext.OnComponentChanged() 83bool ITypeDescriptorContext.OnComponentChanging() 88IContainer ITypeDescriptorContext.Container 93object ITypeDescriptorContext.Instance 98PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (5)
42void ITypeDescriptorContext.OnComponentChanged() 46bool ITypeDescriptorContext.OnComponentChanging() 51IContainer ITypeDescriptorContext.Container 56object ITypeDescriptorContext.Instance 61PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\BamlRecords.cs (2)
2677internal ITypeDescriptorContext TypeContext 2688ITypeDescriptorContext _typeContext;
System\Windows\Markup\BamlRecordWriter.cs (2)
1860ITypeDescriptorContext TypeConvertContext 1906ITypeDescriptorContext _typeConvertContext;
System\Windows\Markup\DependencyPropertyConverter.cs (4)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 60public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 72public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object source) 97public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
204object ITypeDescriptorContext.Instance 668PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\Markup\RoutedEventConverter.cs (4)
21public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 37public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 45public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, 136public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (5)
40public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 59public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 71public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object source) 85public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 92internal static object ResolveValue(ITypeDescriptorContext serviceProvider,
System\Windows\Markup\TemplateKeyConverter.cs (4)
37public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 48public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 60public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object source) 73public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\XamlTypeMapper.cs (1)
508ITypeDescriptorContext typeContext,
System\Windows\NullableBoolConverter.cs (3)
36public override bool GetStandardValuesSupported(ITypeDescriptorContext context) 48public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) 58public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
System\Windows\PropertyPath.cs (3)
106internal PropertyPath(string path, ITypeDescriptorContext typeDescriptorContext) 369private void PrepareSourceValueInfo(ITypeDescriptorContext typeDescriptorContext) 506void ResolvePathParts(ITypeDescriptorContext typeDescriptorContext)
System\Windows\PropertyPathConverter.cs (4)
50public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 71public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 100public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, 133public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\ResourceReferenceExpressionConverter.cs (4)
39public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 66public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 93public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 116public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Setter.cs (1)
327private ITypeDescriptorContext _serviceProvider = null;
System\Windows\SystemKeyConverter.cs (4)
40public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 59public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 87public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 110public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\TemplateBindingExpressionConverter.cs (2)
31public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 43public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\Windows\TemplateBindingExtensionConverter.cs (2)
34public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 46public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\TemplateContent.cs (5)
1484IContainer ITypeDescriptorContext.Container 1489object ITypeDescriptorContext.Instance 1494void ITypeDescriptorContext.OnComponentChanged() 1498bool ITypeDescriptorContext.OnComponentChanging() 1503PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Windows\ThemeModeConverter.cs (4)
39public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 52public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 70public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, 98public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext,
System\Windows\ThicknessConverter.cs (4)
43public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType) 74public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType) 96public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source) 126public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
System\Windows\Trigger.cs (1)
320private ITypeDescriptorContext _serviceProvider = null;
ReachFramework (17)
Serialization\ColorTypeConverter.cs (5)
55ITypeDescriptorContext context, 80ITypeDescriptorContext context, 106ITypeDescriptorContext context, 144ITypeDescriptorContext context, 225ITypeDescriptorContext context,
Serialization\FontTypeConverter.cs (5)
52ITypeDescriptorContext context, 77ITypeDescriptorContext context, 103ITypeDescriptorContext context, 141ITypeDescriptorContext context, 213ITypeDescriptorContext context,
Serialization\ImageSourceTypeConverter.cs (5)
61ITypeDescriptorContext context, 86ITypeDescriptorContext context, 112ITypeDescriptorContext context, 151ITypeDescriptorContext context, 299ITypeDescriptorContext context,
Serialization\VisualTreeFlattener.cs (2)
36ITypeDescriptorContext context, 62ITypeDescriptorContext context,
System (1)
src\libraries\shims\System\ref\System.cs (1)
344[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.ITypeDescriptorContext))]
System.CodeDom (12)
Microsoft\CSharp\CSharpModifierAttributeConverter.cs (6)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) => 19public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 37public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 61public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) => true; 63public override bool GetStandardValuesSupported(ITypeDescriptorContext context) => true; 65public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) => new StandardValuesCollection(Values);
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (6)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) => 19public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 37public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 61public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) => true; 62public override bool GetStandardValuesSupported(ITypeDescriptorContext context) => true; 63public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) => new StandardValuesCollection(Values);
System.ComponentModel.TypeConverter (167)
System\ComponentModel\ArrayConverter.cs (3)
18public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 33public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object? value, Attribute[]? attributes) 61public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\ComponentModel\BaseComponentEditor.cs (1)
19public abstract bool EditComponent(ITypeDescriptorContext? context, object component);
System\ComponentModel\BaseNumberConverter.cs (4)
45public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 53public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 90public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 110public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\BooleanConverter.cs (5)
19public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 28public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 48public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 59public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => true; 67public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true;
System\ComponentModel\CharConverter.cs (3)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 26public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 42public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
System\ComponentModel\CollectionConverter.cs (2)
19public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 34public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
System\ComponentModel\ComponentConverter.cs (2)
26public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 35public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\ComponentModel\CultureInfoConverter.cs (7)
43public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 52public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 61public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 139public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 174public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 214public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => false; 220public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true;
System\ComponentModel\DateOnlyConverter.cs (4)
20public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 26public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 35public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 77public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\DateTimeConverter.cs (4)
22public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 39public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 81public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\DateTimeOffsetConverter.cs (4)
21public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 30public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 39public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 81public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\DecimalConverter.cs (2)
32public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 44public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\Design\DesignerOptionService.cs (3)
437public override bool GetPropertiesSupported(ITypeDescriptorContext? cxt) => true; 440public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? cxt, object value, Attribute[]? attributes) 460public override object? ConvertTo(ITypeDescriptorContext? cxt, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\EnumConverter.cs (8)
42public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 55public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 80public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 123public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 231public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 317public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) 326public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true; 331public override bool IsValid(ITypeDescriptorContext? context, object? value) => Enum.IsDefined(EnumType, value!);
System\ComponentModel\ExpandableObjectConverter.cs (2)
26public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 35public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\ComponentModel\GuidConverter.cs (4)
22public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 39public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 56public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\InstanceCreationEditor.cs (1)
21public abstract object? CreateInstance(ITypeDescriptorContext context, Type instanceType);
System\ComponentModel\MultilineStringConverter.cs (3)
17public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 34public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 42public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => false;
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\ReferenceConverter.cs (7)
33public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 46public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 84public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 124public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 174public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => true; 180public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true; 186protected virtual bool IsValueAllowed(ITypeDescriptorContext context, object value) => true;
System\ComponentModel\StringConverter.cs (2)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 26public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value)
System\ComponentModel\TimeOnlyConverter.cs (4)
20public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 26public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 35public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 77public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\TimeSpanConverter.cs (4)
22public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 40public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 65public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
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\ComponentModel\TypeListConverter.cs (7)
32public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 41public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 49public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 68public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 90public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 115public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => true; 121public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true;
System\ComponentModel\UriTypeConverter.cs (5)
23public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 32public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 40public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value) 65public override object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 92public override bool IsValid(ITypeDescriptorContext? context, object? value)
System\ComponentModel\VersionConverter.cs (5)
22public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 40public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 66public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 93public override bool IsValid(ITypeDescriptorContext? context, object? value)
System\Drawing\ColorConverter.cs (6)
28public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 33public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 38public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 48public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 140public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 145public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true;
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\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (2)
16public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 22public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System.Configuration.ConfigurationManager (24)
System\Configuration\CommaDelimitedStringAttributeCollectionConverter.cs (2)
11public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 18public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\ConfigurationConverterBase.cs (2)
10public override bool CanConvertTo(ITypeDescriptorContext ctx, Type type) 15public override bool CanConvertFrom(ITypeDescriptorContext ctx, Type type)
System\Configuration\GenericEnumConverter.cs (2)
22public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 27public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\IdnElement.cs (2)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 50public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
System\Configuration\InfiniteIntConverter.cs (2)
12public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 19public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\InfiniteTimeSpanConverter.cs (2)
13public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 22public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\TimeSpanMinutesConverter.cs (2)
11public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 19public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\TimeSpanMinutesOrInfiniteConverter.cs (2)
11public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 18public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\TimeSpanSecondsConverter.cs (2)
11public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 20public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\TimeSpanSecondsOrInfiniteConverter.cs (2)
11public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 18public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\TypeNameConverter.cs (2)
11public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 23public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System\Configuration\WhiteSpaceTrimStringConverter.cs (2)
11public override object ConvertTo(ITypeDescriptorContext ctx, CultureInfo ci, object value, Type type) 18public override object ConvertFrom(ITypeDescriptorContext ctx, CultureInfo ci, object data)
System.Data.Common (21)
System\Data\ColumnTypeConverter.cs (7)
62public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) => 71public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 107public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) => 111public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 132public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 157public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => true; 163public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true;
System\Data\Common\DataColumnMapping.cs (2)
150public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 159public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Data\Common\DataTableMapping.cs (2)
172public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 181public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Data\ConstraintConverter.cs (2)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) => 31public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Data\DataTableTypeConverter.cs (1)
11public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => false;
System\Data\DefaultValueTypeConverter.cs (2)
22public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 41public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value)
System\Data\PrimaryKeyTypeConverter.cs (3)
17public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => false; 19public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) => 23public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Data\RelationshipConverter.cs (2)
22public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 38public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
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)
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (4)
46public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 71public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 79public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 117public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (4)
28public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 39public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 56public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 100public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System.Windows.Forms (181)
System\Drawing\Design\IPropertyValueUIService.cs (2)
32/// An <see cref="ITypeDescriptorContext" /> that can be used to gain additional context information. 37PropertyValueUIItem[] GetPropertyUIValueItems(ITypeDescriptorContext context, PropertyDescriptor propDesc);
System\Drawing\Design\PaintValueEventArgs.cs (4)
17/// <param name="context">The <see cref="ITypeDescriptorContext"/> in which this value appears in.</param> 21public PaintValueEventArgs(ITypeDescriptorContext? context, object? value, Graphics graphics, Rectangle bounds) 35/// <see cref="ITypeDescriptorContext"/> object for additional information about the context this value appears in. 37public ITypeDescriptorContext? Context { get; }
System\Drawing\Design\PropertyValueUIHandler.cs (2)
11/// An <see cref="ITypeDescriptorContext" /> that can be used to obtain context information. 20public delegate void PropertyValueUIHandler(ITypeDescriptorContext context, PropertyDescriptor propDesc, ArrayList valueUIItemList);
System\Drawing\Design\PropertyValueUIItemInvokeHandler.cs (2)
13/// The <see cref="ITypeDescriptorContext" /> for the property associated with the icon that was double-clicked. 19public delegate void PropertyValueUIItemInvokeHandler(ITypeDescriptorContext context, PropertyDescriptor descriptor, PropertyValueUIItem invokedItem);
System\Drawing\Design\UITypeEditor.cs (6)
90/// The <see cref="ITypeDescriptorContext" /> that can be used to gain additional context information. 94public virtual object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) => value; 110/// The <see cref="ITypeDescriptorContext" /> that can be used to gain additional context information. 112public virtual bool GetPaintValueSupported(ITypeDescriptorContext? context) => false; 118/// The <see cref="ITypeDescriptorContext" /> that can be used to gain additional context information. 120public virtual UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.None;
System\Resources\ResxFileRef.Converter.cs (4)
16public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 19public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 23ITypeDescriptorContext? context, 94ITypeDescriptorContext? context,
System\Windows\Forms\ActiveX\AxHost.AxComponentEditor.cs (1)
15public override bool EditComponent(ITypeDescriptorContext? context, object obj, IWin32Window? parent)
System\Windows\Forms\ActiveX\AxHost.AxEnumConverter.cs (1)
25public override StandardValuesCollection? GetStandardValues(ITypeDescriptorContext? context)
System\Windows\Forms\ActiveX\AxHost.AxPropertyTypeEditor.cs (2)
30public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 49public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context)
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (4)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 22public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 26public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 38public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\ComponentModel\COM2Interop\Com2AboutBoxPropertyDescriptor.AboutBoxUITypeEditor.cs (2)
14public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 40public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (1)
49public override unsafe bool EditComponent(ITypeDescriptorContext? context, object obj, IWin32Window? parent)
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (8)
16public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 19public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destType) 22public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 25public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 39public override StandardValuesCollection? GetStandardValues(ITypeDescriptorContext? context) 53public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => false; 55public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true; 57public override bool IsValid(ITypeDescriptorContext? context, object? value)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (12)
53public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 58public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 63public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 68public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 73public override object? CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues) 78public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) 84public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 89public override bool GetPropertiesSupported(ITypeDescriptorContext? context) 94public override StandardValuesCollection? GetStandardValues(ITypeDescriptorContext? context) 99public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) 104public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) 109public override bool IsValid(ITypeDescriptorContext? context, object? value)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedUITypeEditor.cs (3)
27public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 32public override bool GetPaintValueSupported(ITypeDescriptorContext? context) 37public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (6)
28public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) => false; 30public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 33public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 61public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 64public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => _allowExpand; 66public override bool GetStandardValuesSupported(ITypeDescriptorContext? context)
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyEnumConverter.cs (1)
22public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destType)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (2)
29public override unsafe object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 77public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (3)
32public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 51public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 67public override bool GetPropertiesSupported(ITypeDescriptorContext? context)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (2)
26public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 62public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\Controls\Buttons\FlatButtonAppearanceConverter.cs (2)
12public override object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) => 17public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellConverter.cs (2)
14public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 24public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleConverter.cs (2)
17public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 34public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnConverter.cs (2)
13public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 30public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowConverter.cs (2)
13public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 23public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\ImageList\ImageListConverter.cs (1)
18public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (8)
23public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 37public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 50public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 86public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 119public override object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues) 143public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) => true; 151public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 160public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\Windows\Forms\Controls\Labels\LinkConverter.cs (4)
19public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 33public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 46public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 82public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (2)
17public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 34public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (7)
21public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 35public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 53public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 88public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 113public override StandardValuesCollection? GetStandardValues(ITypeDescriptorContext? context) 137public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) 146public override bool GetStandardValuesSupported(ITypeDescriptorContext? context)
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (2)
24public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 41public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (1)
42public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
System\Windows\Forms\Controls\ListView\ListViewSubItemConverter.cs (2)
14public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 24public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (8)
23public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 37public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 50public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 92public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 141public override object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues) 162public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) 173public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 183public override bool GetPropertiesSupported(ITypeDescriptorContext? context)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (1)
43public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object component, Attribute[]? attributes)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionConverter.cs (1)
16public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionEditor.cs (2)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 51public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context)
System\Windows\Forms\Controls\TextBox\TextBoxAutoCompleteSourceConverter.cs (1)
18public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (3)
19public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 32public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 99public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (2)
22public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 39public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (3)
26public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 50public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 75public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
System\Windows\Forms\Controls\TreeView\TreeViewImageKeyConverter.cs (1)
22public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\WebBrowser\WebBrowserUriTypeConverter.cs (1)
10public override object? ConvertFrom(ITypeDescriptorContext? context, Globalization.CultureInfo? culture, object value)
System\Windows\Forms\DataBinding\ListBindingConverter.cs (4)
47public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 64public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 82public override object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues) 105public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context)
System\Windows\Forms\Design\EventsTab.cs (2)
56private IEventBindingService? GetEventBindingService(object @object, ITypeDescriptorContext? context) 98ITypeDescriptorContext? context,
System\Windows\Forms\Design\IWindowsFormsEditorService.cs (1)
17/// <see cref="UITypeEditor.EditValue(System.ComponentModel.ITypeDescriptorContext, IServiceProvider, object)"/>
System\Windows\Forms\Design\PropertyTab.cs (1)
126ITypeDescriptorContext? context,
System\Windows\Forms\Design\WindowsFormsComponentEditor.cs (2)
17public override bool EditComponent(ITypeDescriptorContext? context, object component) 33public virtual bool EditComponent(ITypeDescriptorContext? context, object component, IWin32Window? owner)
System\Windows\Forms\Dialogs\CommonDialogs\SpecialFolderEnumConverter.cs (1)
21public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
System\Windows\Forms\ImageIndexConverter.cs (6)
51public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 68public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 84/// An <see cref="ITypeDescriptorContext" /> that provides a format context, which can be used to extract 93public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 184public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) 193public override bool GetStandardValuesSupported(ITypeDescriptorContext? context)
System\Windows\Forms\ImageKeyConverter.cs (6)
48public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 61public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 83public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 105public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 195public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) 204public override bool GetStandardValuesSupported(ITypeDescriptorContext? context)
System\Windows\Forms\Input\CursorConverter.cs (6)
24public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 38public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 51public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 83public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 158public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 185public override bool GetStandardValuesSupported(ITypeDescriptorContext? context)
System\Windows\Forms\Input\KeysConverter.cs (7)
130public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 137public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 151public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 220public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 364public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 384public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) 393public override bool GetStandardValuesSupported(ITypeDescriptorContext? context)
System\Windows\Forms\MDI\MdiWindowListItemConverter.cs (1)
18public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (8)
13public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 23public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 33public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 64public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 76public override object? CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues) 96public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) => true; 100public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 106public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (2)
14public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 24public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (4)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 32public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 45public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 63public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdges.cs (2)
18public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 27public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System.Windows.Forms.Design (114)
System\ComponentModel\Design\BinaryEditor.cs (3)
17private ITypeDescriptorContext? _context; 95public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 124public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
70protected ITypeDescriptorContext? Context => _editor.Context;
System\ComponentModel\Design\CollectionEditor.cs (4)
41protected ITypeDescriptorContext? Context { get; private set; } 219public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 230ITypeDescriptorContext? lastContext = Context; 293public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\ComponentModel\Design\DateTimeEditor.cs (2)
15public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 32public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown;
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (2)
17private ITypeDescriptorContext? _typeDescriptorContext; 29protected ITypeDescriptorContext TypeDescriptorContext => _typeDescriptorContext ??= new TypeDescriptorContext(ServiceProvider, PropertyDescriptor, _actionList!);
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (7)
298public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 311public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 324public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value) 341public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 357public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context) 380public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => false; 386public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true;
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
294public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\Design\MultilineStringEditor.cs (3)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 36public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown; 41public override bool GetPaintValueSupported(ITypeDescriptorContext? context) => false;
System\ComponentModel\Design\ObjectSelectorEditor.cs (3)
27public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 73public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown; 77protected virtual void FillTreeWithData(Selector selector, ITypeDescriptorContext? context, IServiceProvider provider)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (13)
20public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 27public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 33public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 40public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 47public override object? CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues) 54private static TypeConverter GetConverter(ITypeDescriptorContext? context) 65public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) 73public override PropertyDescriptorCollection? GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 81public override bool GetPropertiesSupported(ITypeDescriptorContext? context) 88public override StandardValuesCollection? GetStandardValues(ITypeDescriptorContext? context) 130public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) 139public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) 146public override bool IsValid(ITypeDescriptorContext? context, object? value)
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageCultureInfoConverter.cs (1)
31public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
System\Drawing\Design\ColorEditor.cs (3)
19public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 41public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown; 44public override bool GetPaintValueSupported(ITypeDescriptorContext? context) => true;
System\Drawing\Design\ContentAlignmentEditor.cs (2)
19public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 37public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context)
System\Drawing\Design\CursorEditor.cs (2)
22public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 40public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown;
System\Drawing\Design\FontEditor.cs (2)
18public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 57public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\Drawing\Design\FontNameEditor.cs (1)
27public override bool GetPaintValueSupported(ITypeDescriptorContext? context) => true;
System\Drawing\Design\IconEditor.cs (3)
55public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 97public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) 105public override bool GetPaintValueSupported(ITypeDescriptorContext? context) => true;
System\Drawing\Design\ImageEditor.cs (3)
63public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 122public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal; 158public override bool GetPaintValueSupported(ITypeDescriptorContext? context) => true;
System\Windows\Forms\Design\AnchorEditor.cs (2)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 35public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown;
System\Windows\Forms\Design\BorderSidesEditor.cs (2)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 39public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown;
System\Windows\Forms\Design\CollectionEditVerbManager.cs (6)
68IContainer ITypeDescriptorContext.Container 89void ITypeDescriptorContext.OnComponentChanged() => ChangeService.OnComponentChanged(_designer.Component, _targetProperty); 94bool ITypeDescriptorContext.OnComponentChanging() 116object ITypeDescriptorContext.Instance 124PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor 134if (serviceType == typeof(ITypeDescriptorContext) || serviceType == typeof(IWindowsFormsEditorService))
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
30private ITypeDescriptorContext? _context; 84public ITypeDescriptorContext? Context
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (2)
14public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 49public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.cs (2)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 48public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown;
System\Windows\Forms\Design\DataMemberFieldConverter.cs (3)
11public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) => 14public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object? value) 19public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Design\DataSourceListEditor.cs (2)
21public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 43public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
123private ITypeDescriptorContext? _context; // Context of the current 'pick' operation 374public DesignBinding? Pick(ITypeDescriptorContext? context, 2578ITypeDescriptorContext? context = _picker?._context;
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (2)
32internal void OnGetUIValueItem(ITypeDescriptorContext context, PropertyDescriptor propDesc, ArrayList valueUIItemList) 48private static void OnPropertyValueUIItemInvoke(ITypeDescriptorContext context, PropertyDescriptor descriptor, PropertyValueUIItem invokedItem)
System\Windows\Forms\Design\DockEditor.cs (2)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 34public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown;
System\Windows\Forms\Design\EditorServiceContext.cs (6)
76IContainer? ITypeDescriptorContext.Container => _designer.Component.Site?.Container; 79void ITypeDescriptorContext.OnComponentChanged() 83bool ITypeDescriptorContext.OnComponentChanging() 96object ITypeDescriptorContext.Instance => _designer.Component; 98PropertyDescriptor? ITypeDescriptorContext.PropertyDescriptor => _targetProperty; 102if (serviceType == typeof(ITypeDescriptorContext) || serviceType == typeof(IWindowsFormsEditorService))
System\Windows\Forms\Design\FileNameEditor.cs (2)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 44public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\Design\FolderNameEditor.cs (2)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 34public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\Design\FormatStringDialog.cs (2)
12private readonly ITypeDescriptorContext? _context; 20public FormatStringDialog(ITypeDescriptorContext? context)
System\Windows\Forms\Design\FormatStringEditor.cs (2)
15public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 87public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context)
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
37protected virtual Image? GetImage(ITypeDescriptorContext context, int index, string? key, bool useIntIndex) 109public override bool GetPaintValueSupported(ITypeDescriptorContext? context)
System\Windows\Forms\Design\ImageListImageEditor.cs (2)
24public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 97public override bool GetPaintValueSupported(ITypeDescriptorContext? context) => true;
System\Windows\Forms\Design\LinkAreaEditor.cs (2)
17public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 65public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context)
System\Windows\Forms\Design\ListControlStringCollectionEditor.cs (1)
20public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value)
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (1)
63public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
System\Windows\Forms\Design\MaskedTextBoxTextEditor.cs (3)
11public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 37public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) 47public override bool GetPaintValueSupported(ITypeDescriptorContext? context)
System\Windows\Forms\Design\MaskPropertyEditor.cs (3)
58public override object? EditValue(System.ComponentModel.ITypeDescriptorContext? context, IServiceProvider provider, object? value) 77public override bool GetPaintValueSupported(System.ComponentModel.ITypeDescriptorContext? context) 81public override UITypeEditorEditStyle GetEditStyle(System.ComponentModel.ITypeDescriptorContext? context)
System\Windows\Forms\Design\ShortcutKeysEditor.cs (2)
21public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value) 46public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext? context) => UITypeEditorEditStyle.DropDown;
System.Windows.Forms.Design.Tests (85)
System\ComponentModel\Design\ArrayEditorTests.cs (3)
136public void ArrayEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 163public void ArrayEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context) 226public new ITypeDescriptorContext Context => base.Context;
System\ComponentModel\Design\CollectionEditorTests.cs (18)
161Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 219Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 270Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 323Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 417Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 470Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 531Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 572Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 618Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 665Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 708Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 735Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 759public void CollectionEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 767public void CollectionEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context) 850Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 958Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 996Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 1028public new ITypeDescriptorContext Context => base.Context;
System\ComponentModel\Design\CollectionFormTests.cs (15)
118Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 174Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 233Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 292Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 351Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 405Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 511Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 570Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 622Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 676Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 732Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 771Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 831public new ITypeDescriptorContext Context => base.Context; 840public new ITypeDescriptorContext Context => base.Context; 855public new ITypeDescriptorContext Context => base.Context;
System\ComponentModel\Design\MultilineStringEditorTests.cs (2)
61public void MultilineStringEditor_GetEditStyle_Invoke_ReturnsDropDown(ITypeDescriptorContext context) 69public void MultilineStringEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\ComponentModel\Design\ObjectSelectorEditorTests.cs (2)
71public void ObjectSelectorEditor_GetEditStyle_Invoke_ReturnsDropDown(ITypeDescriptorContext context) 79public void ObjectSelectorEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Drawing\Design\BitmapEditorTests.cs (2)
30public void BitmapEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 63public void BitmapEditor_GetPaintValueSupported_Invoke_ReturnsTrue(ITypeDescriptorContext context)
System\Drawing\Design\ColorEditorTests.cs (2)
63public void ColorEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 71public void ColorEditor_GetPaintValueSupported_Invoke_ReturnsTrue(ITypeDescriptorContext context)
System\Drawing\Design\CursorEditorTests.cs (2)
62public void CursorEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 70public void CursorEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Drawing\Design\FontEditorTests.cs (2)
28public void FontEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 36public void FontEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Drawing\Design\FontNameEditorTests.cs (4)
13private readonly ITypeDescriptorContext _typeDescriptorContext; 17_typeDescriptorContext = new Mock<ITypeDescriptorContext>(MockBehavior.Strict).Object; 63public void FontNameEditor_GetEditStyle_Invoke_ReturnsNone(ITypeDescriptorContext context) 71public void FontNameEditor_GetPaintValueSupported_Invoke_ReturnsTrue(ITypeDescriptorContext context)
System\Drawing\Design\ImageEditorTests.cs (2)
64public void ImageEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 119public void ImageEditor_GetPaintValueSupported_Invoke_ReturnsTrue(ITypeDescriptorContext context)
System\Drawing\Design\MetafileEditorTests.cs (2)
22public void MetafileEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 46public void MetafileEditor_GetPaintValueSupported_Invoke_ReturnsTrue(ITypeDescriptorContext context)
System\Windows\Forms\Design\AnchorEditorTests.cs (2)
64public void AnchorEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 72public void AnchorEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Windows\Forms\Design\BorderSidesEditorTests.cs (2)
62public void BorderSidesEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 70public void BorderSidesEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Windows\Forms\Design\DataGridViewCellStyleBuilderTests.cs (2)
34Mock<ITypeDescriptorContext> context = new(); 37ITypeDescriptorContext result = builder.TestAccessor().Dynamic._context;
System\Windows\Forms\Design\DataMemberFieldConverterTests.cs (1)
13private static readonly ITypeDescriptorContext s_context = new MyTypeDescriptorContext();
System\Windows\Forms\Design\DockEditorTests.cs (2)
62public void DockEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 70public void DockEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Windows\Forms\Design\FileNameEditorTests.cs (2)
29public void FileNameEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 37public void FileNameEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Windows\Forms\Design\FolderNameEditorTests.cs (2)
21public void FolderNameEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 29public void FolderNameEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
15private readonly Mock<ITypeDescriptorContext> _context = new(MockBehavior.Strict);
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
20private readonly Mock<ITypeDescriptorContext> _context; 46public void GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context)
System\Windows\Forms\Design\ImageIndexEditorTests.cs (2)
16private ITypeDescriptorContext? _context = new Mock<ITypeDescriptorContext>().Object;
System\Windows\Forms\Design\MaskedTextBoxTextEditorTests.cs (7)
17Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 41Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 63Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 99Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 132Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 164Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 189Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict);
System\Windows\Forms\Design\MaskPropertyEditorTests.cs (2)
25var context = new Mock<ITypeDescriptorContext>().Object;
System\Windows\Forms\Design\ShortcutKeysEditorTests.cs (2)
62public void ShortcutKeysEditor_GetEditStyle_Invoke_ReturnsModal(ITypeDescriptorContext context) 70public void ShortcutKeysEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System.Windows.Forms.Primitives (11)
System\ComponentModel\TypeConverterHelper.cs (1)
28public static bool TryParseAsSpan<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(ITypeDescriptorContext? context, CultureInfo? culture, ReadOnlySpan<char> text, Span<T> output)
System\ServiceExtensions.cs (2)
67/// <param name="context">The <see cref="ITypeDescriptorContext"/> to retrieve the service object from.</param> 73[NotNullWhen(true)] this ITypeDescriptorContext? context,
System\Windows\Forms\PaddingConverter.cs (8)
14public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) => 17public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) => 20public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 43public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType) 69public override object CreateInstance(ITypeDescriptorContext? context, IDictionary propertyValues) 109public override bool GetCreateInstanceSupported(ITypeDescriptorContext? context) => true; 112public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext? context, object value, Attribute[]? attributes) 118public override bool GetPropertiesSupported(ITypeDescriptorContext? context) => true;
System.Windows.Forms.Tests (40)
System\Drawing\Design\PaintValueEventArgsTests.cs (2)
15yield return new object[] { new Mock<ITypeDescriptorContext>(MockBehavior.Strict).Object, new(), new Rectangle(1, 2, 3, 4) }; 20public void PaintValueEventArgs_Ctor_ITypeDescriptorContext_Object_Graphics_Rectangle(ITypeDescriptorContext context, object value, Rectangle bounds)
System\Drawing\Design\PropertyValueUIItemTests.cs (1)
41private static void Dummy_PropertyValueUIItemInvokeHandler(ITypeDescriptorContext context, PropertyDescriptor propDesc, PropertyValueUIItem invokedItem) { }
System\Drawing\Design\UITypeEditorTests.cs (6)
23Mock<ITypeDescriptorContext> mockTypeDescriptorContext = new(MockBehavior.Strict); 24Mock<ITypeDescriptorContext> mockServiceProvider = new(MockBehavior.Strict); 30public void UITypeEditor_EditValue_Invoke_ReturnsValue(ITypeDescriptorContext context, IServiceProvider provider, object value) 39Mock<ITypeDescriptorContext> mockServiceProvider = new(MockBehavior.Strict); 59public void UITypeEditor_GetEditStyle_Invoke_ReturnsNone(ITypeDescriptorContext context) 79public void UITypeEditor_GetPaintValueSupported_Invoke_ReturnsFalse(ITypeDescriptorContext context)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
1360public override bool EditComponent(ITypeDescriptorContext context, object component)
System\Windows\Forms\AxHostTests.cs (1)
3102public override bool EditComponent(ITypeDescriptorContext context, object component)
System\Windows\Forms\Design\PropertyTabTests.cs (2)
163Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 169public void PropertyTab_GetProperties_InvokeWithAttributes_ReturnsExpected(ITypeDescriptorContext context, object component, Attribute[] attributes)
System\Windows\Forms\Design\WindowsFormsComponentEditorTests.cs (4)
38Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 45public void WindowsFormsComponentEditor_EditComponent_InvokeITypeDescriptorContextObject_ReturnsFalse(Type[] pages, ITypeDescriptorContext context, object component) 59Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 67public void WindowsFormsComponentEditor_EditComponent_InvokeITypeDescriptorContextObjectIWin32Window_ReturnsFalse(Type[] pages, ITypeDescriptorContext context, object component, IWin32Window owner)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (4)
1859public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 1867public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 1875public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 1883public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
System\Windows\Forms\ListControlTests.cs (3)
3042public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 3060public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 3074public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Forms\ListViewGroupConverterTests.cs (5)
50Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 78Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 108Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 163Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 279Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict);
System\Windows\Forms\PaddingConverterTests.cs (4)
138Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 178Assert.Throws<ArgumentNullException>("propertyValues", () => converter.CreateInstance(new Mock<ITypeDescriptorContext>(MockBehavior.Strict).Object, null)); 354Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict); 369Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict);
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (1)
71public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes) => TypeDescriptor.GetProperties(component, attributes);
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (5)
127Mock<ITypeDescriptorContext> mockTypeDescriptorContext = new(MockBehavior.Strict); 143Mock<ITypeDescriptorContext> mockTypeDescriptorContext = new(MockBehavior.Strict); 159Mock<ITypeDescriptorContext> mockTypeDescriptorContext = new(MockBehavior.Strict); 231public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) 236public override bool GetPropertiesSupported(ITypeDescriptorContext context) => true;
System\Windows\Forms\TextBoxAutoCompleteSourceConverterTests.cs (1)
16Mock<ITypeDescriptorContext> mockContext = new(MockBehavior.Strict);
System.Windows.Forms.TestUtilities (3)
CommonTestHelperEx.cs (3)
182public static TheoryData<ITypeDescriptorContext> GetITypeDescriptorContextTestData() 184return new TheoryData<ITypeDescriptorContext> 187new Mock<ITypeDescriptorContext>(MockBehavior.Strict).Object
System.Windows.Forms.UI.IntegrationTests (1)
FolderNameEditorTests.cs (1)
36public override object? EditValue(ITypeDescriptorContext? context, IServiceProvider provider, object? value)
System.Xaml (59)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (5)
19public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 26public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 34public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 62public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 92public override bool IsValid(ITypeDescriptorContext context, object value)
System\Windows\Markup\NameReferenceConverter.cs (4)
15public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 25public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 49public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 65public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (2)
18public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 28public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\TypeExtensionConverter.cs (2)
18public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 28public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\XamlSetTypeConverterEventArgs.cs (3)
16ITypeDescriptorContext serviceProvider, CultureInfo cultureInfo) : 25ITypeDescriptorContext serviceProvider, CultureInfo cultureInfo, object targetObject) : 32public ITypeDescriptorContext ServiceProvider { get; private set; }
System\Xaml\Context\ServiceProviderContext.cs (5)
90void ITypeDescriptorContext.OnComponentChanged() 94bool ITypeDescriptorContext.OnComponentChanging() 99IContainer ITypeDescriptorContext.Container 104object ITypeDescriptorContext.Instance 109PropertyDescriptor ITypeDescriptorContext.PropertyDescriptor
System\Xaml\EventConverter.cs (3)
19public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 28public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 42internal static void GetRootObjectAndDelegateType(ITypeDescriptorContext? context, out object? rootObject, out Type? delegateType)
System\Xaml\Replacements\DateTimeConverter2.cs (4)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 28public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) 38public override object ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 41public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (4)
17public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 27public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 37public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 78public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
System\Xaml\Replacements\TypeListConverter.cs (2)
20public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 23public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
System\Xaml\Replacements\TypeTypeConverter.cs (6)
19public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 22public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 36public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 39public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 53private static string ConvertTypeToString(ITypeDescriptorContext context, Type type) 74private static TService GetService<TService>(ITypeDescriptorContext context) where TService : class
System\Xaml\Runtime\ClrObjectRuntime.cs (3)
171public override bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter) 187public override bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type) 219public override T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (3)
117public override bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter) 122public override bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type) 132public override T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance)
System\Xaml\Schema\XamlTypeTypeConverter.cs (7)
14public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 19public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) 35public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 40public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) 56internal static string ConvertXamlTypeToString(ITypeDescriptorContext context, XamlType xamlType) 67private static XamlType ConvertStringToXamlType(ITypeDescriptorContext context, string typeName) 87private static TService GetService<TService>(ITypeDescriptorContext context) where TService : class
System\Xaml\XamlObjectReader.cs (3)
2475ITypeDescriptorContext typeDescriptorContext; 2531public ITypeDescriptorContext TypeDescriptorContext { get { return typeDescriptorContext; } } 2820if (serviceType == typeof(ITypeDescriptorContext)) { return this; }
System\Xaml\XamlRuntime.cs (3)
36abstract public bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter); 38abstract public bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type); 42abstract public T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance);
System.Xaml.Tests (10)
System\Windows\Markup\NameReferenceConverterTests.cs (1)
132public void CanConvertTo_Invoke_ReturnsExpected(ITypeDescriptorContext context, Type destinationType, bool expected)
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\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
23public void Ctor_XamlMember_TypeConverter_Object_ITypeDescriptorContext_CultureInfo(XamlMember member, TypeConverter typeConverter, object value, ITypeDescriptorContext serviceProvider, CultureInfo cultureInfo)
WinFormsControlsTest (5)
Dialogs.ClientGuidConverter.cs (4)
19public override bool GetStandardValuesSupported(ITypeDescriptorContext? context) => true; 20public override bool GetStandardValuesExclusive(ITypeDescriptorContext? context) => true; 22public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value) 31public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext? context)
UserControls\UserControlWithObjectCollectionEditor.cs (1)
33public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)