1 interface inheriting from ITypeDescriptorContext
System.Xaml (1)
System\Windows\Markup\IValueSerializerContext.cs (1)
17
public interface IValueSerializerContext :
ITypeDescriptorContext
18 implementations of ITypeDescriptorContext
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\TypeContext.cs (1)
20
internal class TypeConvertContext :
ITypeDescriptorContext
PresentationFramework (7)
MS\Internal\Data\DefaultValueConverter.cs (1)
725
internal class ValueConverterContext :
ITypeDescriptorContext
, IUriContext
System\Windows\Controls\ContentPresenter.cs (1)
1125
private class TypeContext :
ITypeDescriptorContext
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
18
internal class DPTypeDescriptorContext : System.ComponentModel.
ITypeDescriptorContext
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
53
private class DeferredBinaryDeserializerExtensionContext :
ITypeDescriptorContext
, IFreezeFreezables
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (1)
25
private class TypeConverterContext :
ITypeDescriptorContext
System\Windows\Markup\TypeContext.cs (1)
20
internal class TypeConvertContext :
ITypeDescriptorContext
System\Windows\TemplateContent.cs (1)
1411
internal class ServiceProviderWrapper :
ITypeDescriptorContext
, IXamlTypeResolver, IXamlNamespaceResolver, IProvideValueTarget
ReachFramework (1)
Serialization\Manager\XpsTokenContext.cs (1)
13
System.ComponentModel.
ITypeDescriptorContext
System.Drawing.Common.Tests (1)
System\Drawing\Printing\MarginsConverterTests.cs (1)
148
private class MyTypeDescriptorContext :
ITypeDescriptorContext
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
18
internal abstract partial class GridEntry : GridItem,
ITypeDescriptorContext
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.TypeDescriptorContext.cs (1)
8
internal sealed class TypeDescriptorContext :
ITypeDescriptorContext
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
17
internal class CollectionEditVerbManager : IWindowsFormsEditorService,
ITypeDescriptorContext
System\Windows\Forms\Design\EditorServiceContext.cs (1)
15
internal class EditorServiceContext : IWindowsFormsEditorService,
ITypeDescriptorContext
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\DataMemberFieldConverterTests.cs (1)
51
public class MyTypeDescriptorContext :
ITypeDescriptorContext
System.Xaml (1)
System\Xaml\Context\ServiceProviderContext.cs (1)
14
internal class ServiceProviderContext :
ITypeDescriptorContext
, // derives from IServiceProvider
System.Xaml.Tests (2)
System\Windows\Markup\NameReferenceConverterTests.cs (1)
195
private class CustomTypeDescriptorContext :
ITypeDescriptorContext
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
42
private class CustomTypeDescriptorContext :
ITypeDescriptorContext
1419 references to ITypeDescriptorContext
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (3)
4613
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
4626
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
4651
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Microsoft.AspNetCore.Components.Tests (6)
BindConverterTest.cs (4)
390
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
400
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
410
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
420
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
EventCallbackFactoryBinderExtensionsTest.cs (2)
690
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
699
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
Microsoft.AspNetCore.Http.Abstractions (3)
PathString.cs (3)
514
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
517
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
522
public override object? ConvertTo(
ITypeDescriptorContext
? context,
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
2911
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
2916
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (1)
1131
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (1)
215
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
HeaderModelBinderIntegrationTest.cs (2)
498
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
503
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
SimpleTypeModelBinderIntegrationTest.cs (2)
834
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
839
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Converters\StringEnumConverter.cs (2)
65
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
76
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
Microsoft.Maui (55)
Converters\CornerRadiusTypeConverter.cs (4)
10
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
13
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
16
public override object ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
72
public override object ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
Converters\EasingTypeConverter.cs (7)
13
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
16
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
19
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
53
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
75
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context)
78
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context)
81
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context)
Converters\FlexEnumsConverters.cs (28)
12
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
15
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
18
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
39
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
51
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
54
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
57
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
74
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
86
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
89
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
92
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
113
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
125
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
128
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
131
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
148
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
160
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
163
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
166
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
183
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
195
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
198
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
201
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
216
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
228
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
231
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
234
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
258
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Converters\KeyboardTypeConverter.cs (4)
12
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
15
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
18
public override object ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
44
public override object ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
Converters\ThicknessTypeConverter.cs (4)
13
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
18
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
21
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
93
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Primitives\GridLength.cs (4)
95
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type? sourceType)
98
public override object ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
105
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType) => false;
106
public override object ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type? destinationType) => throw new NotSupportedException();
Primitives\SizeRequest.cs (4)
57
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type? sourceType)
59
public override object ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
66
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
68
public override object ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type? destinationType)
Microsoft.Maui.Controls (164)
AcceleratorTypeConverter.cs (4)
19
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
22
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
25
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
35
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
BindablePropertyConverter.cs (4)
18
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
21
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
76
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
162
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Brush\BrushTypeConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
37
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
40
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
84
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Button\Button.cs (4)
572
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
575
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
578
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
607
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
ColumnDefinitionCollectionTypeConverter.cs (4)
14
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
17
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
20
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
38
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
DecorableTextElement.cs (4)
17
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
20
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
23
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
49
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
DoubleCollectionConverter.cs (4)
12
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
17
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
20
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
47
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
FileImageSourceConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
17
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
26
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
FlowDirectionConverter.cs (4)
10
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
13
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
16
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
35
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
FontAttributes.cs (4)
24
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
27
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
30
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
66
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
FontSizeConverter.cs (4)
13
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
16
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
65
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
103
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
FormattedString.cs (4)
94
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
97
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
100
public override object ConvertFrom(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value)
110
public override object ConvertTo(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value, Type destinationType)
GridLengthTypeConverter.cs (4)
12
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
15
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
18
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
38
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
ImageSourceConverter.cs (4)
13
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
16
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
19
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
34
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Items\CarouselLayoutTypeConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
17
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
30
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Items\ItemsLayoutTypeConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
17
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
56
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Layout\BoundsTypeConverter.cs (4)
13
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
16
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
19
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
56
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
LayoutOptionsConverter.cs (7)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
18
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
22
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
60
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
75
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context)
78
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context)
81
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context)
LegacyLayouts\ConstraintTypeConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
17
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
28
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
ListStringTypeConverter.cs (4)
14
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
17
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
20
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
29
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
ReferenceTypeConverter.cs (4)
17
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
20
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
46
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
49
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
ResourceDictionary.cs (4)
398
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
401
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
453
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
456
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
RowDefinitionCollectionTypeConverter.cs (4)
14
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
17
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
20
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
37
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Shapes\MatrixTypeConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
17
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
39
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Shapes\PathFigureCollectionConverter.cs (4)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
18
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
24
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
677
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Shapes\PathGeometryConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
17
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
27
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Shapes\PointCollectionConverter.cs (4)
14
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
17
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
20
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
61
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Shapes\StrokeShapeTypeConverter.cs (2)
24
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
27
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
Shapes\TransformTypeConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
17
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
23
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Shell\ShellContent.cs (4)
430
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
433
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
436
public override object ConvertFrom(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value)
446
public override object ConvertTo(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value, Type destinationType)
Shell\ShellItem.cs (4)
349
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
355
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
358
public override object ConvertFrom(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value)
368
public override object ConvertTo(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value, Type destinationType)
Shell\ShellNavigationState.cs (4)
106
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType) => false;
107
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo cultureInfo, object value, Type destinationType) => throw new NotSupportedException();
109
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
112
public override object ConvertFrom(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value)
Shell\ShellSection.cs (4)
1249
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType) => false;
1250
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo cultureInfo, object value, Type destinationType) => throw new NotSupportedException();
1252
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
1254
public override object ConvertFrom(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value)
TextAlignment.cs (4)
10
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
13
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
16
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
44
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
TypeTypeConverter.cs (4)
13
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
16
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
29
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
32
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
UriTypeConverter.cs (4)
12
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
15
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
18
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
26
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
VisualElement\VisualElement.cs (4)
2381
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
2384
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
2387
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
2408
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Visuals\VisualTypeConverter.cs (7)
19
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
22
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
152
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
176
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
192
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context)
195
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context)
198
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context)
WebView\WebViewSource.cs (4)
37
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType) => false;
38
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo cultureInfo, object value, Type destinationType) => throw new NotSupportedException();
40
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
43
public override object ConvertFrom(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value)
WebView\WebViewSourceTypeConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
17
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
26
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Microsoft.Maui.Controls.DesignTools (25)
BoundsDesignTypeConverter.cs (1)
9
public override bool IsValid(
ITypeDescriptorContext
context, object value)
ButtonContentDesignTypeConverter.cs (1)
18
public override bool IsValid(
ITypeDescriptorContext
context, object value)
ColorDesignTypeConverter.cs (1)
191
public override bool IsValid(
ITypeDescriptorContext
context, object value)
ConstraintDesignTypeConverter.cs (1)
8
public override bool IsValid(
ITypeDescriptorContext
context, object value)
CornerRadiusDesignTypeConverter.cs (1)
10
public override bool IsValid(
ITypeDescriptorContext
context, object value)
FlexEnumDesignTypeConverters.cs (1)
105
public override bool IsValid(
ITypeDescriptorContext
context, object value)
FontSizeDesignTypeConverter.cs (1)
15
public override bool IsValid(
ITypeDescriptorContext
context, object value)
GridLengthCollectionDesignTypeConverter.cs (2)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool IsValid(
ITypeDescriptorContext
context, object value)
GridLengthDesignTypeConverter.cs (2)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool IsValid(
ITypeDescriptorContext
context, object value)
ImageSourceDesignTypeConverter.cs (1)
8
public override bool IsValid(
ITypeDescriptorContext
context, object value)
KnownValuesDesignTypeConverter.cs (5)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
18
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context)
21
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context)
24
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context)
27
public override bool IsValid(
ITypeDescriptorContext
context, object value)
NonExclusiveEnumConverter.cs (1)
7
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context)
PointTypeDesignConverter.cs (1)
8
public override bool IsValid(
ITypeDescriptorContext
context, object value)
RectTypeDesignConverter.cs (1)
8
public override bool IsValid(
ITypeDescriptorContext
context, object value)
ThicknessTypeDesignConverter.cs (1)
9
public override bool IsValid(
ITypeDescriptorContext
context, object value)
VisibilityDesignTypeConverter.cs (4)
13
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context) => true;
14
override public bool GetStandardValuesSupported(
ITypeDescriptorContext
context) => true;
15
override public StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context) => standardValues;
16
public override bool IsValid(
ITypeDescriptorContext
context, object value)
Microsoft.Maui.Graphics (31)
Converters\ColorTypeConverter.cs (7)
11
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object fromValue)
21
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
29
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context)
182
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context)
185
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context)
188
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
191
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
Converters\PointFTypeConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
26
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
37
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Converters\PointTypeConverter.cs (4)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
14
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
26
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
37
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Converters\RectFTypeConverter.cs (4)
10
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
13
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
23
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
31
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Converters\RectTypeConverter.cs (4)
10
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
13
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
24
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
32
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Converters\SizeFTypeConverter.cs (4)
10
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
13
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
22
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
30
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Converters\SizeTypeConverter.cs (4)
10
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
13
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
22
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
30
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
netstandard (1)
netstandard.cs (1)
358
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.
ITypeDescriptorContext
))]
PresentationBuildTasks (5)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1779
private CodeExpression GetPropertyValueExpression(
ITypeDescriptorContext
ctx, Type typeToConvertTo, Object value, string attributeValue)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (2)
2671
internal
ITypeDescriptorContext
TypeContext
2682
ITypeDescriptorContext
_typeContext;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (2)
1857
ITypeDescriptorContext
TypeConvertContext
1903
ITypeDescriptorContext
_typeConvertContext;
PresentationCore (187)
MS\Internal\IListConverters.cs (16)
29
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
37
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
45
public override object ConvertFrom(
ITypeDescriptorContext
td, CultureInfo ci, object value)
65
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
77
internal abstract object ConvertFromCore(
ITypeDescriptorContext
td, CultureInfo ci, string value);
82
internal abstract object ConvertToCore(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType);
94
internal sealed override object ConvertFromCore(
ITypeDescriptorContext
td, CultureInfo ci, string value)
108
internal override object ConvertToCore(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
139
internal override object ConvertFromCore(
ITypeDescriptorContext
td, CultureInfo ci, string value)
150
internal override object ConvertToCore(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
180
internal override object ConvertFromCore(
ITypeDescriptorContext
td, CultureInfo ci, string value)
191
internal override object ConvertToCore(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
221
internal override object ConvertFromCore(
ITypeDescriptorContext
td, CultureInfo ci, string value)
233
internal override object ConvertToCore(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
266
internal override object ConvertFromCore(
ITypeDescriptorContext
td, CultureInfo ci, string value)
271
internal override object ConvertToCore(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Media\TypeConverterHelper.cs (1)
60
internal static UriHolder GetUriFromUriContext(
ITypeDescriptorContext
context, object inputString)
System\Windows\CultureInfoConverter.cs (4)
48
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
62
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
85
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext,
115
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\DurationConverter.cs (4)
23
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
42
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
60
ITypeDescriptorContext
td,
99
ITypeDescriptorContext
context,
System\Windows\FontStretchConverter.cs (4)
20
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
38
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
55
public override object ConvertFrom(
ITypeDescriptorContext
td, CultureInfo ci, object value)
88
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\FontStyleConverter.cs (4)
20
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
38
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
55
public override object ConvertFrom(
ITypeDescriptorContext
td, CultureInfo ci, object value)
88
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\FontWeightConverter.cs (4)
20
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
38
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
55
public override object ConvertFrom(
ITypeDescriptorContext
td, CultureInfo ci, object value)
88
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Ink\StrokeCollectionConverter.cs (5)
34
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
70
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
114
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
164
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context)
System\Windows\Input\Command\KeyGestureConverter.cs (4)
30
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
76
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source)
136
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\Command\MouseActionConverter.cs (4)
21
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
33
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
54
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source)
83
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\Command\MouseGestureConverter.cs (4)
31
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
51
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source)
113
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
140
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\CursorConverter.cs (6)
26
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
41
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
56
public override TypeConverter.StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context)
85
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context)
97
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
207
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\InputScopeConverter.cs (4)
38
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
62
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
100
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source)
148
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Input\InputScopeNameConverter.cs (4)
38
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
62
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
87
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source)
130
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\XmlLanguageConverter.cs (4)
41
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
55
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
78
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext,
108
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\Media\Animation\KeySplineConverter.cs (4)
27
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptor, Type destinationType)
46
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
63
ITypeDescriptorContext
context,
93
ITypeDescriptorContext
context,
System\Windows\Media\Animation\KeyTimeConverter.cs (4)
25
ITypeDescriptorContext
typeDescriptorContext,
45
ITypeDescriptorContext
typeDescriptorContext,
65
ITypeDescriptorContext
typeDescriptorContext,
128
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (4)
29
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
48
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
66
ITypeDescriptorContext
td,
109
ITypeDescriptorContext
context,
System\Windows\Media\Brush.cs (1)
54
internal static Brush Parse(string value,
ITypeDescriptorContext
context)
System\Windows\Media\ColorConverter.cs (4)
21
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
39
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
69
public override object ConvertFrom(
ITypeDescriptorContext
td, System.Globalization.CultureInfo ci, object value)
98
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\FontFamilyConverter.cs (4)
25
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
39
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
72
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo cultureInfo, object o)
120
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\BrushConverter.cs (4)
28
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
46
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
83
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
114
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\CacheModeConverter.cs (4)
28
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
46
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
83
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
114
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\DoubleCollectionConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\GeometryConverter.cs (4)
28
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
46
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
83
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
114
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\Int32CollectionConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (4)
28
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
46
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
83
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
114
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\PointCollectionConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\TransformConverter.cs (4)
28
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
46
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
83
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
114
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\Generated\VectorCollectionConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\ImageSourceConverter.cs (4)
31
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
49
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
87
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
193
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\MediaTimeline.cs (2)
41
internal MediaTimeline(
ITypeDescriptorContext
context, Uri source) : this()
254
internal
ITypeDescriptorContext
_context = null;
System\Windows\Media\Parsers.cs (3)
84
static private Color ParseContextColor(string trimmedColor, IFormatProvider formatProvider,
ITypeDescriptorContext
context)
192
internal static Color ParseColor(string color, IFormatProvider formatProvider,
ITypeDescriptorContext
context)
240
internal static Brush ParseBrush(string brush, IFormatProvider formatProvider,
ITypeDescriptorContext
context)
System\Windows\Media\PixelFormatConverter.cs (4)
24
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
42
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
69
public override object ConvertFrom(
ITypeDescriptorContext
td, System.Globalization.CultureInfo ci, object o)
87
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media\RequestCachePolicyConverter.cs (4)
21
public override bool CanConvertFrom(
ITypeDescriptorContext
td, Type t)
41
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
62
public override object ConvertFrom(
ITypeDescriptorContext
td, System.Globalization.CultureInfo ci, object value)
99
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\Media\SolidColorBrush.cs (1)
128
internal static object DeserializeFrom(BinaryReader reader,
ITypeDescriptorContext
context)
System\Windows\Media3D\Generated\Matrix3DConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Point3DConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Point4DConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\QuaternionConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Rect3DConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Size3DConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Media3D\Generated\Vector3DConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
73
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
104
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\TextDecorationCollectionConverter.cs (4)
23
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
42
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
59
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object input)
167
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
PresentationFramework (131)
System\Windows\ComponentResourceKeyConverter.cs (4)
30
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
49
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
72
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
95
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Condition.cs (1)
309
private
ITypeDescriptorContext
_serviceProvider = null;
System\Windows\Controls\ContentPresenter.cs (5)
1133
IContainer
ITypeDescriptorContext
.Container { get { return null; } }
1134
object
ITypeDescriptorContext
.Instance { get { return _instance; } }
1135
PropertyDescriptor
ITypeDescriptorContext
.PropertyDescriptor { get { return null; } }
1136
void
ITypeDescriptorContext
.OnComponentChanged() {}
1137
bool
ITypeDescriptorContext
.OnComponentChanging() { return false; }
System\Windows\Controls\DataGridLengthConverter.cs (4)
22
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
49
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
68
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
124
ITypeDescriptorContext
context,
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (4)
33
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
64
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
94
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, CultureInfo cultureInfo, object source)
129
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
System\Windows\CornerRadiusConverter.cs (4)
37
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
68
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
98
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, CultureInfo cultureInfo, object source)
128
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
System\Windows\DeferrableContentConverter.cs (2)
16
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
26
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
System\Windows\DialogResultConverter.cs (4)
36
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
48
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
58
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext,
69
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\Documents\DPTypeDescriptorContext.cs (5)
148
System.ComponentModel.IContainer System.ComponentModel.
ITypeDescriptorContext
.Container
154
object System.ComponentModel.
ITypeDescriptorContext
.Instance
162
void System.ComponentModel.
ITypeDescriptorContext
.OnComponentChanged()
166
bool System.ComponentModel.
ITypeDescriptorContext
.OnComponentChanging()
171
System.ComponentModel.PropertyDescriptor System.ComponentModel.
ITypeDescriptorContext
.PropertyDescriptor
System\Windows\DynamicResourceExtensionConverter.cs (2)
27
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
39
public override object ConvertTo(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\Windows\EventSetterHandlerConverter.cs (4)
23
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
39
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
47
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext,
87
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\FigureLengthConverter.cs (4)
45
ITypeDescriptorContext
typeDescriptorContext,
79
ITypeDescriptorContext
typeDescriptorContext,
103
ITypeDescriptorContext
typeDescriptorContext,
139
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\FontSizeConverter.cs (4)
30
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
44
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
61
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
98
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\GridLengthConverter.cs (4)
48
ITypeDescriptorContext
typeDescriptorContext,
82
ITypeDescriptorContext
typeDescriptorContext,
106
ITypeDescriptorContext
typeDescriptorContext,
159
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\Input\Command\CommandConverter.cs (5)
44
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType )
63
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType )
91
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source )
168
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType )
209
private Type GetTypeFromContext(
ITypeDescriptorContext
context, string typeName )
System\Windows\LengthConverter.cs (4)
43
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
73
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
103
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext,
133
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (5)
76
void
ITypeDescriptorContext
.OnComponentChanged()
80
bool
ITypeDescriptorContext
.OnComponentChanging()
85
IContainer
ITypeDescriptorContext
.Container
90
object
ITypeDescriptorContext
.Instance
95
PropertyDescriptor
ITypeDescriptorContext
.PropertyDescriptor
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (5)
40
void
ITypeDescriptorContext
.OnComponentChanged()
44
bool
ITypeDescriptorContext
.OnComponentChanging()
49
IContainer
ITypeDescriptorContext
.Container
54
object
ITypeDescriptorContext
.Instance
59
PropertyDescriptor
ITypeDescriptorContext
.PropertyDescriptor
System\Windows\Markup\BamlRecords.cs (2)
2671
internal
ITypeDescriptorContext
TypeContext
2682
ITypeDescriptorContext
_typeContext;
System\Windows\Markup\BamlRecordWriter.cs (2)
1857
ITypeDescriptorContext
TypeConvertContext
1903
ITypeDescriptorContext
_typeConvertContext;
System\Windows\Markup\DependencyPropertyConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
51
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
63
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source)
88
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
193
object
ITypeDescriptorContext
.Instance
657
PropertyDescriptor
ITypeDescriptorContext
.PropertyDescriptor
System\Windows\Markup\RoutedEventConverter.cs (4)
20
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
36
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
44
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext,
135
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (5)
30
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
49
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
61
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source)
75
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
82
internal static object ResolveValue(
ITypeDescriptorContext
serviceProvider,
System\Windows\Markup\TemplateKeyConverter.cs (4)
30
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
41
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
53
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object source)
66
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\XamlTypeMapper.cs (1)
506
ITypeDescriptorContext
typeContext,
System\Windows\NullableBoolConverter.cs (3)
34
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context)
46
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context)
56
public override TypeConverter.StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context)
System\Windows\PropertyPath.cs (3)
103
internal PropertyPath(string path,
ITypeDescriptorContext
typeDescriptorContext)
366
private void PrepareSourceValueInfo(
ITypeDescriptorContext
typeDescriptorContext)
503
void ResolvePathParts(
ITypeDescriptorContext
typeDescriptorContext)
System\Windows\PropertyPathConverter.cs (4)
44
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
65
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
94
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext,
127
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\ResourceReferenceExpressionConverter.cs (4)
34
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
61
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
88
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
111
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Setter.cs (1)
326
private
ITypeDescriptorContext
_serviceProvider = null;
System\Windows\SystemKeyConverter.cs (4)
38
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
57
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
85
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
108
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\TemplateBindingExpressionConverter.cs (2)
28
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
40
public override object ConvertTo(
ITypeDescriptorContext
context, System.Globalization.CultureInfo culture, object value, Type destinationType)
System\Windows\TemplateBindingExtensionConverter.cs (2)
31
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
43
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\TemplateContent.cs (5)
1481
IContainer
ITypeDescriptorContext
.Container
1486
object
ITypeDescriptorContext
.Instance
1491
void
ITypeDescriptorContext
.OnComponentChanged()
1495
bool
ITypeDescriptorContext
.OnComponentChanging()
1500
PropertyDescriptor
ITypeDescriptorContext
.PropertyDescriptor
System\Windows\ThemeModeConverter.cs (4)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
45
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
63
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext,
91
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext,
System\Windows\ThicknessConverter.cs (4)
38
public override bool CanConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, Type sourceType)
69
public override bool CanConvertTo(
ITypeDescriptorContext
typeDescriptorContext, Type destinationType)
91
public override object ConvertFrom(
ITypeDescriptorContext
typeDescriptorContext, CultureInfo cultureInfo, object source)
121
public override object ConvertTo(
ITypeDescriptorContext
typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
System\Windows\Trigger.cs (1)
314
private
ITypeDescriptorContext
_serviceProvider = null;
ReachFramework (17)
Serialization\ColorTypeConverter.cs (5)
50
ITypeDescriptorContext
context,
75
ITypeDescriptorContext
context,
101
ITypeDescriptorContext
context,
139
ITypeDescriptorContext
context,
220
ITypeDescriptorContext
context,
Serialization\FontTypeConverter.cs (5)
48
ITypeDescriptorContext
context,
73
ITypeDescriptorContext
context,
99
ITypeDescriptorContext
context,
137
ITypeDescriptorContext
context,
209
ITypeDescriptorContext
context,
Serialization\ImageSourceTypeConverter.cs (5)
53
ITypeDescriptorContext
context,
78
ITypeDescriptorContext
context,
104
ITypeDescriptorContext
context,
143
ITypeDescriptorContext
context,
291
ITypeDescriptorContext
context,
Serialization\VisualTreeFlattener.cs (2)
29
ITypeDescriptorContext
context,
55
ITypeDescriptorContext
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)
16
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType) =>
19
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
37
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
61
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context) => true;
63
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context) => true;
65
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context) => new StandardValuesCollection(Values);
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (6)
16
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType) =>
19
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
37
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
61
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
context) => true;
62
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
context) => true;
63
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
context) => new StandardValuesCollection(Values);
System.ComponentModel.TypeConverter (167)
System\ComponentModel\ArrayConverter.cs (3)
18
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
33
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object? value, Attribute[]? attributes)
61
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\ComponentModel\BaseComponentEditor.cs (1)
19
public abstract bool EditComponent(
ITypeDescriptorContext
? context, object component);
System\ComponentModel\BaseNumberConverter.cs (4)
45
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
53
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
90
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
110
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\BooleanConverter.cs (5)
19
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
28
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
48
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
59
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => true;
67
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
System\ComponentModel\CharConverter.cs (3)
18
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
26
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
42
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
System\ComponentModel\CollectionConverter.cs (2)
19
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
34
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
System\ComponentModel\ComponentConverter.cs (2)
26
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
35
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\ComponentModel\CultureInfoConverter.cs (7)
43
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
52
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
61
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
139
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
174
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
214
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => false;
220
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
System\ComponentModel\DateOnlyConverter.cs (4)
20
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
26
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
35
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
77
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\DateTimeConverter.cs (4)
22
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
31
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
39
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
81
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\DateTimeOffsetConverter.cs (4)
21
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
30
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
39
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
81
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\DecimalConverter.cs (2)
32
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
44
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\Design\DesignerOptionService.cs (3)
437
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? cxt) => true;
440
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? cxt, object value, Attribute[]? attributes)
460
public override object? ConvertTo(
ITypeDescriptorContext
? cxt, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\EnumConverter.cs (8)
42
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
55
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
80
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
123
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
231
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
317
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context)
326
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
331
public override bool IsValid(
ITypeDescriptorContext
? context, object? value) => Enum.IsDefined(EnumType, value!);
System\ComponentModel\ExpandableObjectConverter.cs (2)
26
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
35
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\ComponentModel\GuidConverter.cs (4)
22
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
31
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
39
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
56
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\InstanceCreationEditor.cs (1)
21
public abstract object? CreateInstance(
ITypeDescriptorContext
context, Type instanceType);
System\ComponentModel\MultilineStringConverter.cs (3)
17
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
34
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
42
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => false;
System\ComponentModel\NullableConverter.cs (12)
41
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
58
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
79
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
100
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
132
public override object? CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
148
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context)
163
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
177
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context)
190
public override StandardValuesCollection? GetStandardValues(
ITypeDescriptorContext
? context)
219
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context)
233
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
246
public override bool IsValid(
ITypeDescriptorContext
? context, object value)
System\ComponentModel\ReferenceConverter.cs (7)
33
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
46
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
84
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
124
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
174
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => true;
180
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
186
protected virtual bool IsValueAllowed(
ITypeDescriptorContext
context, object value) => true;
System\ComponentModel\StringConverter.cs (2)
18
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
26
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
System\ComponentModel\TimeOnlyConverter.cs (4)
20
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
26
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
35
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
77
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\TimeSpanConverter.cs (4)
22
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
31
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
40
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
65
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\TypeConverter.cs (19)
28
public virtual bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
41
public virtual bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
54
public virtual object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
74
public object? ConvertFromInvariantString(
ITypeDescriptorContext
? context, string text)
87
public object? ConvertFromString(
ITypeDescriptorContext
? context, string text)
95
public object? ConvertFromString(
ITypeDescriptorContext
? context, CultureInfo? culture, string text)
113
public virtual object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
147
public string? ConvertToInvariantString(
ITypeDescriptorContext
? context, object? value)
163
public string? ConvertToString(
ITypeDescriptorContext
? context, object? value)
171
public string? ConvertToString(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
187
public virtual object? CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues) => null;
221
public virtual bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context) => false;
237
public PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object value)
249
public virtual PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
262
public virtual bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => false;
272
public virtual StandardValuesCollection? GetStandardValues(
ITypeDescriptorContext
? context) => null;
285
public virtual bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => false;
297
public virtual bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => false;
307
public virtual bool IsValid(
ITypeDescriptorContext
? context, object value)
System\ComponentModel\TypeListConverter.cs (7)
32
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
41
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
49
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
68
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
90
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
115
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => true;
121
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
System\ComponentModel\UriTypeConverter.cs (5)
23
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
32
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
40
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
65
public override object ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
92
public override bool IsValid(
ITypeDescriptorContext
? context, object? value)
System\ComponentModel\VersionConverter.cs (5)
22
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
31
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
40
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
66
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
93
public override bool IsValid(
ITypeDescriptorContext
? context, object? value)
System\Drawing\ColorConverter.cs (6)
28
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
33
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
38
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
48
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
140
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
145
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
System\Drawing\PointConverter.cs (8)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
20
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
25
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
61
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
95
public override object CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
110
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context) => true;
115
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object? value, Attribute[]? attributes)
121
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\Drawing\RectangleConverter.cs (8)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
20
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
25
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
59
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
98
public override object CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
116
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context) => true;
121
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object? value, Attribute[]? attributes)
127
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\Drawing\SizeConverter.cs (8)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
20
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
25
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
59
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
93
public override object CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
108
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context) => true;
113
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
119
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\Drawing\SizeFConverter.cs (8)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
20
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
25
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
58
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
90
public override object CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
105
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context) => true;
110
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
116
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (2)
16
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
22
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System.Configuration.ConfigurationManager (24)
System\Configuration\CommaDelimitedStringAttributeCollectionConverter.cs (2)
11
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
18
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\ConfigurationConverterBase.cs (2)
10
public override bool CanConvertTo(
ITypeDescriptorContext
ctx, Type type)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
ctx, Type type)
System\Configuration\GenericEnumConverter.cs (2)
22
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
27
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\IdnElement.cs (2)
41
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
50
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
System\Configuration\InfiniteIntConverter.cs (2)
12
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
19
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\InfiniteTimeSpanConverter.cs (2)
13
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
22
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\TimeSpanMinutesConverter.cs (2)
11
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
19
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\TimeSpanMinutesOrInfiniteConverter.cs (2)
11
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
18
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\TimeSpanSecondsConverter.cs (2)
11
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
20
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\TimeSpanSecondsOrInfiniteConverter.cs (2)
11
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
18
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\TypeNameConverter.cs (2)
11
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
23
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System\Configuration\WhiteSpaceTrimStringConverter.cs (2)
11
public override object ConvertTo(
ITypeDescriptorContext
ctx, CultureInfo ci, object value, Type type)
18
public override object ConvertFrom(
ITypeDescriptorContext
ctx, CultureInfo ci, object data)
System.Data.Common (21)
System\Data\ColumnTypeConverter.cs (7)
62
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType) =>
71
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
107
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType) =>
111
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
132
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
157
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => true;
163
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
System\Data\Common\DataColumnMapping.cs (2)
150
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
159
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Data\Common\DataTableMapping.cs (2)
172
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
181
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Data\ConstraintConverter.cs (2)
20
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType) =>
31
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Data\DataTableTypeConverter.cs (1)
11
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => false;
System\Data\DefaultValueTypeConverter.cs (2)
22
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
41
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
System\Data\PrimaryKeyTypeConverter.cs (3)
17
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => false;
19
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType) =>
23
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Data\RelationshipConverter.cs (2)
22
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
38
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System.Drawing.Common (36)
Special\NotSupported.cs (36)
369
public override bool CanConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
370
public override bool CanConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
371
public override object? ConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
372
public override object? ConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
373
public override object CreateInstance(System.ComponentModel.
ITypeDescriptorContext
? context, System.Collections.IDictionary propertyValues) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
374
public override bool GetCreateInstanceSupported(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
376
public override System.ComponentModel.PropertyDescriptorCollection? GetProperties(System.ComponentModel.
ITypeDescriptorContext
? context, object? value, System.Attribute[]? attributes) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
377
public override bool GetPropertiesSupported(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
381
public override bool CanConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
382
public override object? ConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
383
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
384
public override bool GetStandardValuesExclusive(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
385
public override bool GetStandardValuesSupported(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
392
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
729
public override bool CanConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
730
public override bool CanConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
731
public override object? ConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
732
public override object? ConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
822
public override bool CanConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
823
public override bool CanConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
824
public override object? ConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
825
public override object ConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
827
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.
ITypeDescriptorContext
? context, object? value, System.Attribute[]? attributes) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
828
public override bool GetPropertiesSupported(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
834
public override bool CanConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Type? sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
835
public override bool CanConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
836
public override object? ConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
837
public override object? ConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
838
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
839
public override bool GetStandardValuesSupported(System.ComponentModel.
ITypeDescriptorContext
? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2735
public override bool CanConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Type sourceType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2736
public override bool CanConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2737
public override object? ConvertFrom(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object value) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2738
public override object? ConvertTo(System.ComponentModel.
ITypeDescriptorContext
? context, System.Globalization.CultureInfo? culture, object? value, System.Type destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2739
public override object CreateInstance(System.ComponentModel.
ITypeDescriptorContext
? context, System.Collections.IDictionary propertyValues) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2740
public 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)
45
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
70
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
78
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
116
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (4)
27
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
38
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
55
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
99
public 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.
37
PropertyValueUIItem[] 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>
21
public PaintValueEventArgs(
ITypeDescriptorContext
? context, object? value, Graphics graphics, Rectangle bounds)
35
/// <see cref="
ITypeDescriptorContext
"/> object for additional information about the context this value appears in.
37
public
ITypeDescriptorContext
? Context { get; }
System\Drawing\Design\PropertyValueUIHandler.cs (2)
11
/// An <see cref="
ITypeDescriptorContext
" /> that can be used to obtain context information.
20
public 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.
19
public 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.
94
public virtual object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value) => value;
110
/// The <see cref="
ITypeDescriptorContext
" /> that can be used to gain additional context information.
112
public virtual bool GetPaintValueSupported(
ITypeDescriptorContext
? context) => false;
118
/// The <see cref="
ITypeDescriptorContext
" /> that can be used to gain additional context information.
120
public virtual UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.None;
System\Resources\ResxFileRef.Converter.cs (4)
16
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
19
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
23
ITypeDescriptorContext
? context,
94
ITypeDescriptorContext
? context,
System\Windows\Forms\ActiveX\AxHost.AxComponentEditor.cs (1)
15
public override bool EditComponent(
ITypeDescriptorContext
? context, object obj, IWin32Window? parent)
System\Windows\Forms\ActiveX\AxHost.AxEnumConverter.cs (1)
25
public override StandardValuesCollection? GetStandardValues(
ITypeDescriptorContext
? context)
System\Windows\Forms\ActiveX\AxHost.AxPropertyTypeEditor.cs (2)
30
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
49
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (4)
18
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
22
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
26
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
38
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\ComponentModel\COM2Interop\Com2AboutBoxPropertyDescriptor.AboutBoxUITypeEditor.cs (2)
14
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
40
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (1)
49
public override unsafe bool EditComponent(
ITypeDescriptorContext
? context, object obj, IWin32Window? parent)
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (8)
16
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
19
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destType)
22
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
25
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
39
public override StandardValuesCollection? GetStandardValues(
ITypeDescriptorContext
? context)
53
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => false;
55
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
57
public override bool IsValid(
ITypeDescriptorContext
? context, object? value)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (12)
53
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
58
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
63
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
68
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
73
public override object? CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
78
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context)
84
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
89
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context)
94
public override StandardValuesCollection? GetStandardValues(
ITypeDescriptorContext
? context)
99
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context)
104
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
109
public override bool IsValid(
ITypeDescriptorContext
? context, object? value)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedUITypeEditor.cs (3)
27
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
32
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context)
37
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (6)
28
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType) => false;
30
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
33
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
61
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
64
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => _allowExpand;
66
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyEnumConverter.cs (1)
22
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destType)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (2)
29
public override unsafe object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
77
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (3)
32
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
51
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
67
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (2)
26
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
62
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\Controls\Buttons\FlatButtonAppearanceConverter.cs (2)
12
public override object ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType) =>
17
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellConverter.cs (2)
14
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
24
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleConverter.cs (2)
17
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
34
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnConverter.cs (2)
13
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
30
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowConverter.cs (2)
13
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
23
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\ImageList\ImageListConverter.cs (1)
18
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (8)
23
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
37
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
50
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
86
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
119
public override object CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
143
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context) => true;
151
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
160
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\Windows\Forms\Controls\Labels\LinkConverter.cs (4)
19
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
33
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
46
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
82
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (2)
17
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
34
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (7)
21
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
35
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
53
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
88
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
113
public override StandardValuesCollection? GetStandardValues(
ITypeDescriptorContext
? context)
137
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context)
146
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (2)
24
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
41
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (1)
42
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
System\Windows\Forms\Controls\ListView\ListViewSubItemConverter.cs (2)
14
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
24
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (8)
23
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
37
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
50
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
92
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
141
public override object CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
162
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context)
173
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
183
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (1)
43
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object component, Attribute[]? attributes)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionConverter.cs (1)
16
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionEditor.cs (2)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
51
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
System\Windows\Forms\Controls\TextBox\TextBoxAutoCompleteSourceConverter.cs (1)
18
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (3)
19
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
32
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
99
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (2)
22
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
39
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (3)
26
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
50
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
75
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
System\Windows\Forms\Controls\TreeView\TreeViewImageKeyConverter.cs (1)
22
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Controls\WebBrowser\WebBrowserUriTypeConverter.cs (1)
10
public override object? ConvertFrom(
ITypeDescriptorContext
? context, Globalization.CultureInfo? culture, object value)
System\Windows\Forms\DataBinding\ListBindingConverter.cs (4)
47
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
64
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
82
public override object CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
105
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\Design\EventsTab.cs (2)
56
private IEventBindingService? GetEventBindingService(object @object,
ITypeDescriptorContext
? context)
98
ITypeDescriptorContext
? 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)
126
ITypeDescriptorContext
? context,
System\Windows\Forms\Design\WindowsFormsComponentEditor.cs (2)
17
public override bool EditComponent(
ITypeDescriptorContext
? context, object component)
33
public virtual bool EditComponent(
ITypeDescriptorContext
? context, object component, IWin32Window? owner)
System\Windows\Forms\Dialogs\CommonDialogs\SpecialFolderEnumConverter.cs (1)
21
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
System\Windows\Forms\ImageIndexConverter.cs (6)
51
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
68
public 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
93
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
184
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context)
193
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\ImageKeyConverter.cs (6)
48
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
61
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
83
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
105
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
195
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context)
204
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\Input\CursorConverter.cs (6)
24
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
38
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
51
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
83
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
158
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
185
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\Input\KeysConverter.cs (7)
130
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
137
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
151
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
220
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
364
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
384
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context)
393
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\MDI\MdiWindowListItemConverter.cs (1)
18
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (8)
13
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
23
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
33
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
64
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
76
public override object? CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
96
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context) => true;
100
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
106
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (2)
14
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
24
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (4)
18
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
32
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
45
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
63
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdges.cs (2)
18
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
27
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System.Windows.Forms.Design (114)
System\ComponentModel\Design\BinaryEditor.cs (3)
17
private
ITypeDescriptorContext
? _context;
95
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
124
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (1)
70
protected
ITypeDescriptorContext
? Context => _editor.Context;
System\ComponentModel\Design\CollectionEditor.cs (4)
41
protected
ITypeDescriptorContext
? Context { get; private set; }
219
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
230
ITypeDescriptorContext
? lastContext = Context;
293
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\ComponentModel\Design\DateTimeEditor.cs (2)
15
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
32
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (2)
17
private
ITypeDescriptorContext
? _typeDescriptorContext;
29
protected
ITypeDescriptorContext
TypeDescriptorContext => _typeDescriptorContext ??= new TypeDescriptorContext(ServiceProvider, PropertyDescriptor, _actionList!);
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (7)
298
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
311
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
324
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
341
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
357
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
380
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => false;
386
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
294
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\ComponentModel\Design\MultilineStringEditor.cs (3)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
36
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
41
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context) => false;
System\ComponentModel\Design\ObjectSelectorEditor.cs (3)
27
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
73
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
77
protected virtual void FillTreeWithData(Selector selector,
ITypeDescriptorContext
? context, IServiceProvider provider)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (13)
20
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
27
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
33
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
40
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
47
public override object? CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
54
private static TypeConverter GetConverter(
ITypeDescriptorContext
? context)
65
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context)
73
public override PropertyDescriptorCollection? GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
81
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context)
88
public override StandardValuesCollection? GetStandardValues(
ITypeDescriptorContext
? context)
130
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context)
139
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context)
146
public override bool IsValid(
ITypeDescriptorContext
? context, object? value)
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageCultureInfoConverter.cs (1)
31
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
System\Drawing\Design\ColorEditor.cs (3)
19
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
41
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
44
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context) => true;
System\Drawing\Design\ContentAlignmentEditor.cs (2)
19
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
37
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
System\Drawing\Design\CursorEditor.cs (2)
22
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
40
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
System\Drawing\Design\FontEditor.cs (2)
18
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
57
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\Drawing\Design\FontNameEditor.cs (1)
27
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context) => true;
System\Drawing\Design\IconEditor.cs (3)
55
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
97
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
105
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context) => true;
System\Drawing\Design\ImageEditor.cs (3)
63
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
122
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
158
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context) => true;
System\Windows\Forms\Design\AnchorEditor.cs (2)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
35
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
System\Windows\Forms\Design\BorderSidesEditor.cs (2)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
39
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
System\Windows\Forms\Design\CollectionEditVerbManager.cs (6)
68
IContainer
ITypeDescriptorContext
.Container
89
void
ITypeDescriptorContext
.OnComponentChanged() => ChangeService.OnComponentChanged(_designer.Component, _targetProperty);
94
bool
ITypeDescriptorContext
.OnComponentChanging()
116
object
ITypeDescriptorContext
.Instance
124
PropertyDescriptor
ITypeDescriptorContext
.PropertyDescriptor
134
if (serviceType == typeof(
ITypeDescriptorContext
) || serviceType == typeof(IWindowsFormsEditorService))
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
30
private
ITypeDescriptorContext
? _context;
84
public
ITypeDescriptorContext
? Context
System\Windows\Forms\Design\DataGridViewCellStyleEditor.cs (2)
14
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
49
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.cs (2)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
48
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
System\Windows\Forms\Design\DataMemberFieldConverter.cs (3)
11
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType) =>
14
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
19
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Windows\Forms\Design\DataSourceListEditor.cs (2)
21
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
43
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
123
private
ITypeDescriptorContext
? _context; // Context of the current 'pick' operation
374
public DesignBinding? Pick(
ITypeDescriptorContext
? context,
2580
ITypeDescriptorContext
? context = _picker?._context;
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (2)
32
internal void OnGetUIValueItem(
ITypeDescriptorContext
context, PropertyDescriptor propDesc, ArrayList valueUIItemList)
48
private static void OnPropertyValueUIItemInvoke(
ITypeDescriptorContext
context, PropertyDescriptor descriptor, PropertyValueUIItem invokedItem)
System\Windows\Forms\Design\DockEditor.cs (2)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
34
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
System\Windows\Forms\Design\EditorServiceContext.cs (6)
76
IContainer?
ITypeDescriptorContext
.Container => _designer.Component.Site?.Container;
79
void
ITypeDescriptorContext
.OnComponentChanged()
83
bool
ITypeDescriptorContext
.OnComponentChanging()
96
object
ITypeDescriptorContext
.Instance => _designer.Component;
98
PropertyDescriptor?
ITypeDescriptorContext
.PropertyDescriptor => _targetProperty;
102
if (serviceType == typeof(
ITypeDescriptorContext
) || serviceType == typeof(IWindowsFormsEditorService))
System\Windows\Forms\Design\FileNameEditor.cs (2)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
44
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\Design\FolderNameEditor.cs (2)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
34
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.Modal;
System\Windows\Forms\Design\FormatStringDialog.cs (2)
12
private readonly
ITypeDescriptorContext
? _context;
20
public FormatStringDialog(
ITypeDescriptorContext
? context)
System\Windows\Forms\Design\FormatStringEditor.cs (2)
15
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
87
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
System\Windows\Forms\Design\ImageIndexEditor.cs (2)
37
protected virtual Image? GetImage(
ITypeDescriptorContext
context, int index, string? key, bool useIntIndex)
109
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\Design\ImageListImageEditor.cs (2)
24
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
97
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context) => true;
System\Windows\Forms\Design\LinkAreaEditor.cs (2)
17
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
65
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
System\Windows\Forms\Design\ListControlStringCollectionEditor.cs (1)
20
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
System\Windows\Forms\Design\ListViewGroupCollectionEditor.cs (1)
63
public override object EditValue(
ITypeDescriptorContext
context, IServiceProvider provider, object value)
System\Windows\Forms\Design\MaskedTextBoxTextEditor.cs (3)
11
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
37
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context)
47
public override bool GetPaintValueSupported(
ITypeDescriptorContext
? context)
System\Windows\Forms\Design\MaskPropertyEditor.cs (3)
58
public override object? EditValue(System.ComponentModel.
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
77
public override bool GetPaintValueSupported(System.ComponentModel.
ITypeDescriptorContext
? context)
81
public override UITypeEditorEditStyle GetEditStyle(System.ComponentModel.
ITypeDescriptorContext
? context)
System\Windows\Forms\Design\ShortcutKeysEditor.cs (2)
21
public override object? EditValue(
ITypeDescriptorContext
? context, IServiceProvider provider, object? value)
46
public override UITypeEditorEditStyle GetEditStyle(
ITypeDescriptorContext
? context) => UITypeEditorEditStyle.DropDown;
System.Windows.Forms.Design.Tests (88)
System\ComponentModel\Design\ArrayEditorTests.cs (3)
136
public void ArrayEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
163
public void ArrayEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
226
public new
ITypeDescriptorContext
Context => base.Context;
System\ComponentModel\Design\CollectionEditorTests.cs (18)
161
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
219
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
270
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
323
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
417
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
470
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
531
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
572
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
618
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
665
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
708
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
735
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
759
public void CollectionEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
767
public void CollectionEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
850
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
958
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
996
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
1028
public new
ITypeDescriptorContext
Context => base.Context;
System\ComponentModel\Design\CollectionFormTests.cs (15)
118
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
174
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
233
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
292
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
351
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
405
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
511
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
570
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
622
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
676
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
732
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
771
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
831
public new
ITypeDescriptorContext
Context => base.Context;
840
public new
ITypeDescriptorContext
Context => base.Context;
855
public new
ITypeDescriptorContext
Context => base.Context;
System\ComponentModel\Design\MultilineStringEditorTests.cs (2)
61
public void MultilineStringEditor_GetEditStyle_Invoke_ReturnsDropDown(
ITypeDescriptorContext
context)
69
public void MultilineStringEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\ComponentModel\Design\ObjectSelectorEditorTests.cs (2)
71
public void ObjectSelectorEditor_GetEditStyle_Invoke_ReturnsDropDown(
ITypeDescriptorContext
context)
79
public void ObjectSelectorEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Drawing\Design\BitmapEditorTests.cs (2)
29
public void BitmapEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
62
public void BitmapEditor_GetPaintValueSupported_Invoke_ReturnsTrue(
ITypeDescriptorContext
context)
System\Drawing\Design\ColorEditorTests.cs (2)
63
public void ColorEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
71
public void ColorEditor_GetPaintValueSupported_Invoke_ReturnsTrue(
ITypeDescriptorContext
context)
System\Drawing\Design\CursorEditorTests.cs (2)
62
public void CursorEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
70
public void CursorEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Drawing\Design\FontEditorTests.cs (2)
28
public void FontEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
36
public void FontEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Drawing\Design\FontNameEditorTests.cs (4)
13
private readonly
ITypeDescriptorContext
_typeDescriptorContext;
17
_typeDescriptorContext = new Mock<
ITypeDescriptorContext
>(MockBehavior.Strict).Object;
63
public void FontNameEditor_GetEditStyle_Invoke_ReturnsNone(
ITypeDescriptorContext
context)
71
public void FontNameEditor_GetPaintValueSupported_Invoke_ReturnsTrue(
ITypeDescriptorContext
context)
System\Drawing\Design\ImageEditorTests.cs (2)
64
public void ImageEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
119
public void ImageEditor_GetPaintValueSupported_Invoke_ReturnsTrue(
ITypeDescriptorContext
context)
System\Drawing\Design\MetafileEditorTests.cs (2)
22
public void MetafileEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
46
public void MetafileEditor_GetPaintValueSupported_Invoke_ReturnsTrue(
ITypeDescriptorContext
context)
System\Windows\Forms\Design\AnchorEditorTests.cs (2)
64
public void AnchorEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
72
public void AnchorEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Windows\Forms\Design\BorderSidesEditorTests.cs (2)
62
public void BorderSidesEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
70
public void BorderSidesEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Windows\Forms\Design\DataGridViewCellStyleBuilderTests.cs (2)
34
Mock<
ITypeDescriptorContext
> context = new();
37
ITypeDescriptorContext
result = builder.TestAccessor().Dynamic._context;
System\Windows\Forms\Design\DataMemberFieldConverterTests.cs (1)
13
private static readonly
ITypeDescriptorContext
s_context = new MyTypeDescriptorContext();
System\Windows\Forms\Design\DockEditorTests.cs (2)
62
public void DockEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
70
public void DockEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Windows\Forms\Design\FileNameEditorTests.cs (2)
29
public void FileNameEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
37
public void FileNameEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Windows\Forms\Design\FolderNameEditorTests.cs (2)
21
public void FolderNameEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
29
public void FolderNameEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
15
private readonly Mock<
ITypeDescriptorContext
> _context = new(MockBehavior.Strict);
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
20
private readonly Mock<
ITypeDescriptorContext
> _context;
46
public void GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
System\Windows\Forms\Design\ImageIndexEditorTests.cs (2)
16
private
ITypeDescriptorContext
? _context = new Mock<
ITypeDescriptorContext
>().Object;
System\Windows\Forms\Design\ListControlStringCollectionEditorTests.cs (3)
29
Mock<
ITypeDescriptorContext
> context = new();
44
Mock<
ITypeDescriptorContext
> context = new();
61
Mock<
ITypeDescriptorContext
> context = new();
System\Windows\Forms\Design\MaskedTextBoxTextEditorTests.cs (7)
17
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
41
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
63
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
99
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
132
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
164
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
189
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
System\Windows\Forms\Design\MaskPropertyEditorTests.cs (2)
25
var
context = new Mock<
ITypeDescriptorContext
>().Object;
System\Windows\Forms\Design\ShortcutKeysEditorTests.cs (2)
62
public void ShortcutKeysEditor_GetEditStyle_Invoke_ReturnsModal(
ITypeDescriptorContext
context)
70
public void ShortcutKeysEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System.Windows.Forms.Primitives (11)
System\ComponentModel\TypeConverterHelper.cs (1)
28
public 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)
14
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType) =>
17
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType) =>
20
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
43
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
69
public override object CreateInstance(
ITypeDescriptorContext
? context, IDictionary propertyValues)
109
public override bool GetCreateInstanceSupported(
ITypeDescriptorContext
? context) => true;
112
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
? context, object value, Attribute[]? attributes)
118
public override bool GetPropertiesSupported(
ITypeDescriptorContext
? context) => true;
System.Windows.Forms.Tests (40)
System\Drawing\Design\PaintValueEventArgsTests.cs (2)
15
yield return new object[] { new Mock<
ITypeDescriptorContext
>(MockBehavior.Strict).Object, new(), new Rectangle(1, 2, 3, 4) };
20
public void PaintValueEventArgs_Ctor_ITypeDescriptorContext_Object_Graphics_Rectangle(
ITypeDescriptorContext
context, object value, Rectangle bounds)
System\Drawing\Design\PropertyValueUIItemTests.cs (1)
41
private static void Dummy_PropertyValueUIItemInvokeHandler(
ITypeDescriptorContext
context, PropertyDescriptor propDesc, PropertyValueUIItem invokedItem) { }
System\Drawing\Design\UITypeEditorTests.cs (6)
23
Mock<
ITypeDescriptorContext
> mockTypeDescriptorContext = new(MockBehavior.Strict);
24
Mock<
ITypeDescriptorContext
> mockServiceProvider = new(MockBehavior.Strict);
30
public void UITypeEditor_EditValue_Invoke_ReturnsValue(
ITypeDescriptorContext
context, IServiceProvider provider, object value)
39
Mock<
ITypeDescriptorContext
> mockServiceProvider = new(MockBehavior.Strict);
59
public void UITypeEditor_GetEditStyle_Invoke_ReturnsNone(
ITypeDescriptorContext
context)
79
public void UITypeEditor_GetPaintValueSupported_Invoke_ReturnsFalse(
ITypeDescriptorContext
context)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
1360
public override bool EditComponent(
ITypeDescriptorContext
context, object component)
System\Windows\Forms\AxHostTests.cs (1)
3102
public override bool EditComponent(
ITypeDescriptorContext
context, object component)
System\Windows\Forms\Design\PropertyTabTests.cs (2)
163
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
169
public void PropertyTab_GetProperties_InvokeWithAttributes_ReturnsExpected(
ITypeDescriptorContext
context, object component, Attribute[] attributes)
System\Windows\Forms\Design\WindowsFormsComponentEditorTests.cs (4)
38
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
45
public void WindowsFormsComponentEditor_EditComponent_InvokeITypeDescriptorContextObject_ReturnsFalse(Type[] pages,
ITypeDescriptorContext
context, object component)
59
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
67
public void WindowsFormsComponentEditor_EditComponent_InvokeITypeDescriptorContextObjectIWin32Window_ReturnsFalse(Type[] pages,
ITypeDescriptorContext
context, object component, IWin32Window owner)
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (4)
1859
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
1867
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
1875
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
1883
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
System\Windows\Forms\ListControlTests.cs (3)
3042
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
3060
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
3074
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Forms\ListViewGroupConverterTests.cs (5)
50
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
78
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
108
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
163
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
279
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
System\Windows\Forms\PaddingConverterTests.cs (4)
138
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
178
Assert.Throws<ArgumentNullException>("propertyValues", () => converter.CreateInstance(new Mock<
ITypeDescriptorContext
>(MockBehavior.Strict).Object, null));
354
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
369
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (1)
71
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
context, object component, Attribute[] attributes) => TypeDescriptor.GetProperties(component, attributes);
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (5)
127
Mock<
ITypeDescriptorContext
> mockTypeDescriptorContext = new(MockBehavior.Strict);
143
Mock<
ITypeDescriptorContext
> mockTypeDescriptorContext = new(MockBehavior.Strict);
159
Mock<
ITypeDescriptorContext
> mockTypeDescriptorContext = new(MockBehavior.Strict);
231
public override PropertyDescriptorCollection GetProperties(
ITypeDescriptorContext
context, object value, Attribute[] attributes)
236
public override bool GetPropertiesSupported(
ITypeDescriptorContext
context) => true;
System\Windows\Forms\TextBoxAutoCompleteSourceConverterTests.cs (1)
16
Mock<
ITypeDescriptorContext
> mockContext = new(MockBehavior.Strict);
System.Windows.Forms.TestUtilities (3)
CommonTestHelperEx.cs (3)
182
public static TheoryData<
ITypeDescriptorContext
> GetITypeDescriptorContextTestData()
184
return new TheoryData<
ITypeDescriptorContext
>
187
new Mock<
ITypeDescriptorContext
>(MockBehavior.Strict).Object
System.Windows.Forms.UI.IntegrationTests (1)
FolderNameEditorTests.cs (1)
36
public 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)
19
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
26
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
34
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
62
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
92
public override bool IsValid(
ITypeDescriptorContext
context, object value)
System\Windows\Markup\NameReferenceConverter.cs (4)
15
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
25
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
49
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
65
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (2)
17
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
27
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\TypeExtensionConverter.cs (2)
17
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
27
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
System\Windows\Markup\XamlSetTypeConverterEventArgs.cs (3)
16
ITypeDescriptorContext
serviceProvider, CultureInfo cultureInfo) :
25
ITypeDescriptorContext
serviceProvider, CultureInfo cultureInfo, object targetObject) :
32
public
ITypeDescriptorContext
ServiceProvider { get; private set; }
System\Xaml\Context\ServiceProviderContext.cs (5)
88
void
ITypeDescriptorContext
.OnComponentChanged()
92
bool
ITypeDescriptorContext
.OnComponentChanging()
97
IContainer
ITypeDescriptorContext
.Container
102
object
ITypeDescriptorContext
.Instance
107
PropertyDescriptor
ITypeDescriptorContext
.PropertyDescriptor
System\Xaml\EventConverter.cs (3)
18
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
27
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
41
internal static void GetRootObjectAndDelegateType(
ITypeDescriptorContext
? context, out object? rootObject, out Type? delegateType)
System\Xaml\Replacements\DateTimeConverter2.cs (4)
18
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type sourceType)
28
public override bool CanConvertTo(
ITypeDescriptorContext
? context, [NotNullWhen(true)] Type? destinationType)
38
public override object ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
41
public override object? ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (4)
16
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
26
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
36
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
77
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
System\Xaml\Replacements\TypeListConverter.cs (2)
19
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
22
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
System\Xaml\Replacements\TypeTypeConverter.cs (6)
19
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
22
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
36
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
39
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
53
private static string ConvertTypeToString(
ITypeDescriptorContext
context, Type type)
74
private static TService GetService<TService>(
ITypeDescriptorContext
context) where TService : class
System\Xaml\Runtime\ClrObjectRuntime.cs (3)
169
public override bool CanConvertFrom<T>(
ITypeDescriptorContext
context, TypeConverter converter)
185
public override bool CanConvertTo(
ITypeDescriptorContext
context, TypeConverter converter, Type type)
217
public override T ConvertToValue<T>(
ITypeDescriptorContext
context, TypeConverter converter, object instance)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (3)
115
public override bool CanConvertFrom<T>(
ITypeDescriptorContext
context, TypeConverter converter)
120
public override bool CanConvertTo(
ITypeDescriptorContext
context, TypeConverter converter, Type type)
130
public override T ConvertToValue<T>(
ITypeDescriptorContext
context, TypeConverter converter, object instance)
System\Xaml\Schema\XamlTypeTypeConverter.cs (7)
14
public override bool CanConvertFrom(
ITypeDescriptorContext
context, Type sourceType)
19
public override object ConvertFrom(
ITypeDescriptorContext
context, CultureInfo culture, object value)
35
public override bool CanConvertTo(
ITypeDescriptorContext
context, Type destinationType)
40
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)
56
internal static string ConvertXamlTypeToString(
ITypeDescriptorContext
context, XamlType xamlType)
67
private static XamlType ConvertStringToXamlType(
ITypeDescriptorContext
context, string typeName)
87
private static TService GetService<TService>(
ITypeDescriptorContext
context) where TService : class
System\Xaml\XamlObjectReader.cs (3)
2470
ITypeDescriptorContext
typeDescriptorContext;
2526
public
ITypeDescriptorContext
TypeDescriptorContext { get { return typeDescriptorContext; } }
2815
if (serviceType == typeof(
ITypeDescriptorContext
)) { return this; }
System\Xaml\XamlRuntime.cs (3)
34
abstract public bool CanConvertFrom<T>(
ITypeDescriptorContext
context, TypeConverter converter);
36
abstract public bool CanConvertTo(
ITypeDescriptorContext
context, TypeConverter converter, Type type);
40
abstract public T ConvertToValue<T>(
ITypeDescriptorContext
context, TypeConverter converter, object instance);
System.Xaml.Tests (10)
System\Windows\Markup\NameReferenceConverterTests.cs (1)
132
public void CanConvertTo_Invoke_ReturnsExpected(
ITypeDescriptorContext
context, Type destinationType, bool expected)
System\Windows\Markup\ValueSerializerTests.cs (8)
461
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
467
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type? sourceType)
473
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value)
478
public override object ConvertTo(
ITypeDescriptorContext
? context, CultureInfo? culture, object? value, Type destinationType)
486
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
491
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type? sourceType)
499
public override bool CanConvertTo(
ITypeDescriptorContext
? context, Type? destinationType)
504
public override bool CanConvertFrom(
ITypeDescriptorContext
? context, Type? sourceType)
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
23
public void Ctor_XamlMember_TypeConverter_Object_ITypeDescriptorContext_CultureInfo(XamlMember member, TypeConverter typeConverter, object value,
ITypeDescriptorContext
serviceProvider, CultureInfo cultureInfo)
WinFormsControlsTest (5)
Dialogs.ClientGuidConverter.cs (4)
19
public override bool GetStandardValuesSupported(
ITypeDescriptorContext
? context) => true;
20
public override bool GetStandardValuesExclusive(
ITypeDescriptorContext
? context) => true;
22
public override object? ConvertFrom(
ITypeDescriptorContext
? context, CultureInfo? culture, object value)
31
public override StandardValuesCollection GetStandardValues(
ITypeDescriptorContext
? context)
UserControls\UserControlWithObjectCollectionEditor.cs (1)
33
public override object ConvertTo(
ITypeDescriptorContext
context, CultureInfo culture, object value, Type destinationType)