194 overrides of CanConvertTo
Microsoft.AspNetCore.Components.Tests (1)
BindConverterTest.cs (1)
410public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Microsoft.Maui (13)
Converters\CornerRadiusTypeConverter.cs (1)
13 public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
Converters\EasingTypeConverter.cs (1)
16 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Converters\FlexEnumsConverters.cs (7)
15 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 54 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 89 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 128 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 163 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 198 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) 231 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Converters\KeyboardTypeConverter.cs (1)
15 public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
Converters\ThicknessTypeConverter.cs (1)
18 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Primitives\GridLength.cs (1)
105 public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) => false;
Primitives\SizeRequest.cs (1)
66 public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
Microsoft.Maui.Controls (39)
AcceleratorTypeConverter.cs (1)
22 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
BindablePropertyConverter.cs (1)
21 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Brush\BrushTypeConverter.cs (1)
37 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Button\Button.cs (1)
575 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
ColumnDefinitionCollectionTypeConverter.cs (1)
17 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
DecorableTextElement.cs (1)
20 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
DoubleCollectionConverter.cs (1)
17 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
FileImageSourceConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
FlowDirectionConverter.cs (1)
13 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
FontAttributes.cs (1)
27 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
FontSizeConverter.cs (1)
16 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
FormattedString.cs (1)
97 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
GridLengthTypeConverter.cs (1)
15 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
ImageSourceConverter.cs (1)
16 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Items\CarouselLayoutTypeConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Items\ItemsLayoutTypeConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Layout\BoundsTypeConverter.cs (1)
16 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
LayoutOptionsConverter.cs (1)
18 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
LegacyLayouts\ConstraintTypeConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
ListStringTypeConverter.cs (1)
17 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
ReferenceTypeConverter.cs (1)
20 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
ResourceDictionary.cs (1)
401 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
RowDefinitionCollectionTypeConverter.cs (1)
17 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Shapes\MatrixTypeConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Shapes\PathFigureCollectionConverter.cs (1)
18 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Shapes\PathGeometryConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Shapes\PointCollectionConverter.cs (1)
17 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Shapes\TransformTypeConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Shell\ShellContent.cs (1)
433 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Shell\ShellItem.cs (1)
355 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Shell\ShellNavigationState.cs (1)
106 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) => false;
Shell\ShellSection.cs (1)
1249 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) => false;
TextAlignment.cs (1)
13 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
TypeTypeConverter.cs (1)
16 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
UriTypeConverter.cs (1)
15 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
VisualElement\VisualElement.cs (1)
2384 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Visuals\VisualTypeConverter.cs (1)
22 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
WebView\WebViewSource.cs (1)
37 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) => false;
WebView\WebViewSourceTypeConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Microsoft.Maui.Graphics (7)
Converters\ColorTypeConverter.cs (1)
191 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Converters\PointFTypeConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Converters\PointTypeConverter.cs (1)
14 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Converters\RectFTypeConverter.cs (1)
13 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Converters\RectTypeConverter.cs (1)
13 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Converters\SizeFTypeConverter.cs (1)
13 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Converters\SizeTypeConverter.cs (1)
13 public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
PresentationCore (41)
MS\Internal\IListConverters.cs (1)
37public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\CultureInfoConverter.cs (1)
62public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\DurationConverter.cs (1)
42public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\FontStretchConverter.cs (1)
38public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\FontStyleConverter.cs (1)
38public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\FontWeightConverter.cs (1)
38public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Ink\StrokeCollectionConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Input\Command\KeyGestureConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Input\Command\MouseActionConverter.cs (1)
33public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Input\Command\MouseGestureConverter.cs (1)
113public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Input\CursorConverter.cs (1)
41public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Input\InputScopeConverter.cs (1)
62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Input\InputScopeNameConverter.cs (1)
62public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Markup\XmlLanguageConverter.cs (1)
55public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\Media\Animation\KeySplineConverter.cs (1)
46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
44public override bool CanConvertTo(
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
48public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\ColorConverter.cs (1)
39public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\FontFamilyConverter.cs (1)
39public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\BrushConverter.cs (1)
46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\CacheModeConverter.cs (1)
46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\DoubleCollectionConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\GeometryConverter.cs (1)
46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\Int32CollectionConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\PointCollectionConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\TransformConverter.cs (1)
46public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\Generated\VectorCollectionConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\ImageSourceConverter.cs (1)
49public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\PixelFormatConverter.cs (1)
42public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media\RequestCachePolicyConverter.cs (1)
41public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\Media3D\Generated\Matrix3DConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media3D\Generated\Point3DConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media3D\Generated\Point4DConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media3D\Generated\QuaternionConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media3D\Generated\Rect3DConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media3D\Generated\Size3DConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Media3D\Generated\Vector3DConverter.cs (1)
50public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\TextDecorationCollectionConverter.cs (1)
23public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
PresentationFramework (21)
System\Windows\Controls\DataGridLengthConverter.cs (1)
49public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
64public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\CornerRadiusConverter.cs (1)
68public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\DialogResultConverter.cs (1)
48public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\DynamicResourceExtensionConverter.cs (1)
27public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\EventSetterHandlerConverter.cs (1)
39public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\FigureLengthConverter.cs (1)
78public override bool CanConvertTo(
System\Windows\FontSizeConverter.cs (1)
44public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\GridLengthConverter.cs (1)
81public override bool CanConvertTo(
System\Windows\Input\Command\CommandConverter.cs (1)
63public override bool CanConvertTo( ITypeDescriptorContext context, Type destinationType )
System\Windows\LengthConverter.cs (1)
73public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\Markup\DependencyPropertyConverter.cs (1)
51public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Markup\RoutedEventConverter.cs (1)
36public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (1)
49public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Markup\TemplateKeyConverter.cs (1)
41public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\PropertyPathConverter.cs (1)
65public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\SystemKeyConverter.cs (1)
57public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\TemplateBindingExpressionConverter.cs (1)
28public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\TemplateBindingExtensionConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\ThemeModeConverter.cs (1)
45public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
System\Windows\ThicknessConverter.cs (1)
69public override bool CanConvertTo(ITypeDescriptorContext typeDescriptorContext, Type destinationType)
ReachFramework (3)
Serialization\ColorTypeConverter.cs (1)
74CanConvertTo(
Serialization\FontTypeConverter.cs (1)
72CanConvertTo(
Serialization\ImageSourceTypeConverter.cs (1)
77CanConvertTo(
System.ComponentModel.TypeConverter (19)
System\ComponentModel\BaseNumberConverter.cs (1)
110public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\CultureInfoConverter.cs (1)
52public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\DateOnlyConverter.cs (1)
26public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\DateTimeConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\DateTimeOffsetConverter.cs (1)
30public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\EnumConverter.cs (1)
55public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\GuidConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\NullableConverter.cs (1)
79public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\TimeOnlyConverter.cs (1)
26public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\TimeSpanConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\TypeListConverter.cs (1)
41public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\UriTypeConverter.cs (1)
32public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\VersionConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\ColorConverter.cs (1)
33public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\PointConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\RectangleConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\SizeConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\SizeFConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (1)
16public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationConverterBase.cs (1)
10public override bool CanConvertTo(ITypeDescriptorContext ctx, Type type)
System.Data.Common (6)
System\Data\ColumnTypeConverter.cs (1)
62public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) =>
System\Data\Common\DataColumnMapping.cs (1)
150public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Data\Common\DataTableMapping.cs (1)
172public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Data\ConstraintConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) =>
System\Data\PrimaryKeyTypeConverter.cs (1)
19public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) =>
System\Data\RelationshipConverter.cs (1)
22public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System.Drawing.Common (5)
Special\NotSupported.cs (5)
370public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 730public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 823public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 835public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2736public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] System.Type? destinationType) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
70public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (1)
38public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System.Windows.Forms (22)
System\Resources\ResxFileRef.Converter.cs (1)
19public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (1)
22public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
19public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destType)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
58public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellConverter.cs (1)
14public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleConverter.cs (1)
17public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnConverter.cs (1)
13public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowConverter.cs (1)
13public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
37public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
33public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
17public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
35public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (1)
24public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\ListView\ListViewSubItemConverter.cs (1)
14public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
37public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (1)
22public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
47public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Input\CursorConverter.cs (1)
38public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Input\KeysConverter.cs (1)
137public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
13public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (1)
14public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
32public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
311public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
27public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
System.Windows.Forms.Primitives (1)
System\Windows\Forms\PaddingConverter.cs (1)
17public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) =>
System.Xaml (8)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (1)
26public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Markup\NameReferenceConverter.cs (1)
49public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (1)
17public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Windows\Markup\TypeExtensionConverter.cs (1)
17public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Xaml\Replacements\DateTimeConverter2.cs (1)
28public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
16public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Xaml\Replacements\TypeTypeConverter.cs (1)
36public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System\Xaml\Schema\XamlTypeTypeConverter.cs (1)
35public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
System.Xaml.Tests (3)
System\Windows\Markup\ValueSerializerTests.cs (3)
461public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 486public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType) 499public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)
106 references to CanConvertTo
Microsoft.AspNetCore.Components.Tests (1)
BindConverterTest.cs (1)
417return base.CanConvertTo(context, destinationType);
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
1822if (converter.CanConvertTo(ctx, typeof(InstanceDescriptor)))
PresentationCore (27)
System\Windows\FontStretchConverter.cs (1)
45return base.CanConvertTo(context, destinationType);
System\Windows\FontStyleConverter.cs (1)
45return base.CanConvertTo(context, destinationType);
System\Windows\FontWeightConverter.cs (1)
45return base.CanConvertTo(context, destinationType);
System\Windows\Ink\StrokeCollectionConverter.cs (1)
59return base.CanConvertTo(context, destinationType);
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
55return base.CanConvertTo(
System\Windows\Media\ColorConverter.cs (1)
46return base.CanConvertTo(context, destinationType);
System\Windows\Media\FontFamilyConverter.cs (1)
66return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\BrushConverter.cs (1)
67return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\CacheModeConverter.cs (1)
67return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\DoubleCollectionConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\GeometryConverter.cs (1)
67return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\Int32CollectionConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
67return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\PointCollectionConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\TransformConverter.cs (1)
67return base.CanConvertTo(context, destinationType);
System\Windows\Media\Generated\VectorCollectionConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media\ImageSourceConverter.cs (1)
71return base.CanConvertTo(context, destinationType);
System\Windows\Media\PixelFormatConverter.cs (1)
50return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\Matrix3DConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\Point3DConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\Point4DConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\QuaternionConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\Rect3DConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\Size3DConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
System\Windows\Media3D\Generated\Vector3DConverter.cs (1)
57return base.CanConvertTo(context, destinationType);
PresentationFramework (11)
System\Windows\Controls\ContentPresenter.cs (1)
1108if (tc != null && (tc.CanConvertTo(context, typeof(String))))
System\Windows\Documents\DPTypeDescriptorContext.cs (2)
75if (typeConverter.CanConvertTo(context, typeof(string))) 132if (typeConverter.CanConvertTo(context, typeof(string)))
System\Windows\DynamicResourceExtensionConverter.cs (1)
33return base.CanConvertTo(context, destinationType);
System\Windows\FontSizeConverter.cs (1)
51return base.CanConvertTo(context, destinationType);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
357if (converter != null && converter.CanConvertTo(Context, typeof(InstanceDescriptor))) 902if (converter.CanConvertTo(context, typeof(MarkupExtension)))
System\Windows\SystemKeyConverter.cs (2)
67return base.CanConvertTo(context, destinationType); 157return base.CanConvertTo(context, destinationType);
System\Windows\TemplateBindingExpressionConverter.cs (1)
34return base.CanConvertTo(context, destinationType);
System\Windows\TemplateBindingExtensionConverter.cs (1)
37return base.CanConvertTo(context, destinationType);
ReachFramework (2)
Serialization\Manager\ReachSerializableProperties.cs (2)
468canConvert = converter.CanConvertTo(null,typeof(string)) && 824canConvert = converter.CanConvertTo(null,typeof(string)) &&
System.ComponentModel.TypeConverter (21)
System\ComponentModel\BaseNumberConverter.cs (1)
117return base.CanConvertTo(context, destinationType);
System\ComponentModel\CultureInfoConverter.cs (1)
54return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\DateOnlyConverter.cs (1)
28return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\DateTimeConverter.cs (1)
33return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\DateTimeOffsetConverter.cs (1)
32return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\EnumConverter.cs (1)
61return base.CanConvertTo(context, destinationType);
System\ComponentModel\GuidConverter.cs (1)
33return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\NullableConverter.cs (2)
91return UnderlyingTypeConverter.CanConvertTo(context, destinationType); 94return base.CanConvertTo(context, destinationType);
System\ComponentModel\TimeOnlyConverter.cs (1)
28return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\TimeSpanConverter.cs (1)
33return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\TypeConverter.cs (1)
35public bool CanConvertTo([NotNullWhen(true)] Type? destinationType) => CanConvertTo(null, destinationType);
System\ComponentModel\TypeListConverter.cs (1)
43return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\UriTypeConverter.cs (1)
34return destinationType == typeof(Uri) || destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\ComponentModel\VersionConverter.cs (1)
33return destinationType == typeof(Version) || destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\Drawing\ColorConverter.cs (1)
35return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\Drawing\PointConverter.cs (1)
22return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\Drawing\RectangleConverter.cs (1)
22return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\Drawing\SizeConverter.cs (1)
22return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\Drawing\SizeFConverter.cs (1)
22return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (1)
18return destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System.Data.Common (7)
System\Data\ColumnTypeConverter.cs (2)
64base.CanConvertTo(context, destinationType); 109base.CanConvertTo(context, sourceType);
System\Data\Common\DataColumnMapping.cs (1)
156return base.CanConvertTo(context, destinationType);
System\Data\Common\DataTableMapping.cs (1)
178return base.CanConvertTo(context, destinationType);
System\Data\ConstraintConverter.cs (1)
22base.CanConvertTo(context, destinationType);
System\Data\PrimaryKeyTypeConverter.cs (1)
21base.CanConvertTo(context, destinationType);
System\Data\RelationshipConverter.cs (1)
28return base.CanConvertTo(context, destinationType);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (1)
45return base.CanConvertTo(context, destinationType);
System.Windows.Forms (23)
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (1)
23=> destinationType == typeof(byte[]) || base.CanConvertTo(context, destinationType);
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
20=> base.CanConvertTo(context, destType) || (destType is not null && destType.IsEnum);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (2)
60? _innerConverter.CanConvertTo(context, destinationType) 61: base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellConverter.cs (1)
21return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleConverter.cs (1)
24return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnConverter.cs (1)
20return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowConverter.cs (1)
20return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
44return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
40return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
24return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
47return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (1)
31return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\ListView\ListViewSubItemConverter.cs (1)
21return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
44return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2440&& entry.TypeConverter.CanConvertTo(entry, value.GetType()))
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (1)
29return base.CanConvertTo(context, destinationType);
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
54return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Input\CursorConverter.cs (1)
45return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Input\KeysConverter.cs (1)
138=> destinationType == typeof(Enum[]) || base.CanConvertTo(context, destinationType);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
20return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (1)
21return base.CanConvertTo(context, destinationType);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
39return base.CanConvertTo(context, destinationType);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
318return base.CanConvertTo(context, destinationType);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
28=> GetConverter(context).CanConvertTo(context, destinationType);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\PaddingConverter.cs (1)
18destinationType == typeof(InstanceDescriptor) || base.CanConvertTo(context, destinationType);
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataGridViewCellConverterTests.cs (1)
19_converter.CanConvertTo(context: null, destinationType).Should().Be(expected);
System\Windows\Forms\ListViewGroupConverterTests.cs (1)
167Assert.Equal(expected, converter.CanConvertTo(mockContext.Object, typeof(string)));
System.Xaml (7)
ms\Internal\Markup\TypeConverterValueSerializer.cs (1)
27return converter.CanConvertTo(context, typeof(string));
System\Windows\Markup\NameReferenceConverter.cs (1)
61return base.CanConvertTo(context, destinationType);
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (1)
24return base.CanConvertTo(context, destinationType);
System\Windows\Markup\TypeExtensionConverter.cs (1)
24return base.CanConvertTo(context, destinationType);
System\Xaml\Replacements\DateTimeConverter2.cs (1)
35return base.CanConvertTo(context, destinationType);
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
23return base.CanConvertTo(context, destinationType);
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
189return converter.CanConvertTo(context, type);