199 overrides of CanConvertFrom
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
4613public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.AspNetCore.Components.Tests (2)
BindConverterTest.cs (1)
390public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
EventCallbackFactoryBinderExtensionsTest.cs (1)
690public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.AspNetCore.Http.Abstractions (1)
PathString.cs (1)
514public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2911public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (1)
1131public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (1)
215public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
HeaderModelBinderIntegrationTest.cs (1)
498public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
SimpleTypeModelBinderIntegrationTest.cs (1)
834public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Converters\StringEnumConverter.cs (1)
65public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.Maui (13)
Converters\CornerRadiusTypeConverter.cs (1)
10 public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
Converters\EasingTypeConverter.cs (1)
13 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Converters\FlexEnumsConverters.cs (7)
12 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 51 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 86 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 125 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 160 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 195 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) 228 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Converters\KeyboardTypeConverter.cs (1)
12 public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
Converters\ThicknessTypeConverter.cs (1)
13 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Primitives\GridLength.cs (1)
95 public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? sourceType)
Primitives\SizeRequest.cs (1)
57 public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? sourceType)
Microsoft.Maui.Controls (40)
AcceleratorTypeConverter.cs (1)
19 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
BindablePropertyConverter.cs (1)
18 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Brush\BrushTypeConverter.cs (1)
32 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Button\Button.cs (1)
573 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
ColumnDefinitionCollectionTypeConverter.cs (1)
14 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
DecorableTextElement.cs (1)
17 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
DoubleCollectionConverter.cs (1)
12 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
FileImageSourceConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
FlowDirectionConverter.cs (1)
10 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
FontAttributes.cs (1)
24 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
FontSizeConverter.cs (1)
13 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
FormattedString.cs (1)
94 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
GridLengthTypeConverter.cs (1)
12 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
ImageSourceConverter.cs (1)
13 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Items\CarouselLayoutTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Items\ItemsLayoutTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Layout\BoundsTypeConverter.cs (1)
13 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
LayoutOptionsConverter.cs (1)
15 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
LegacyLayouts\ConstraintTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
ListStringTypeConverter.cs (1)
14 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
ReferenceTypeConverter.cs (1)
17 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
ResourceDictionary.cs (1)
398 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
RowDefinitionCollectionTypeConverter.cs (1)
14 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shapes\MatrixTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shapes\PathFigureCollectionConverter.cs (1)
15 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shapes\PathGeometryConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shapes\PointCollectionConverter.cs (1)
14 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shapes\StrokeShapeTypeConverter.cs (1)
24 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shapes\TransformTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shell\ShellContent.cs (1)
430 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shell\ShellItem.cs (1)
349 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shell\ShellNavigationState.cs (1)
109 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Shell\ShellSection.cs (1)
1252 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
TextAlignment.cs (1)
10 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
TypeTypeConverter.cs (1)
13 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
UriTypeConverter.cs (1)
12 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
VisualElement\VisualElement.cs (1)
2370 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Visuals\VisualTypeConverter.cs (1)
19 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
WebView\WebViewSource.cs (1)
40 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
WebView\WebViewSourceTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.Maui.Controls.DesignTools (3)
GridLengthCollectionDesignTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
GridLengthDesignTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
KnownValuesDesignTypeConverter.cs (1)
15 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft.Maui.Graphics (7)
Converters\ColorTypeConverter.cs (1)
188 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Converters\PointFTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Converters\PointTypeConverter.cs (1)
11 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Converters\RectFTypeConverter.cs (1)
10 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Converters\RectTypeConverter.cs (1)
10 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Converters\SizeFTypeConverter.cs (1)
10 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Converters\SizeTypeConverter.cs (1)
10 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
PresentationCore (41)
MS\Internal\IListConverters.cs (1)
29public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\CultureInfoConverter.cs (1)
48public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\DurationConverter.cs (1)
22public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\FontStretchConverter.cs (1)
20public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\FontStyleConverter.cs (1)
20public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\FontWeightConverter.cs (1)
20public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\Ink\StrokeCollectionConverter.cs (1)
34public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Input\Command\KeyGestureConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Input\Command\MouseActionConverter.cs (1)
21public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Input\Command\MouseGestureConverter.cs (1)
31public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Input\CursorConverter.cs (1)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Input\InputScopeConverter.cs (1)
38public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Input\InputScopeNameConverter.cs (1)
38public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Markup\XmlLanguageConverter.cs (1)
41public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\Media\Animation\KeySplineConverter.cs (1)
24public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptor, Type destinationType)
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
24public override bool CanConvertFrom(
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
29public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\Media\ColorConverter.cs (1)
21public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\Media\FontFamilyConverter.cs (1)
22public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\Media\Generated\BrushConverter.cs (1)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\Generated\CacheModeConverter.cs (1)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\Generated\DoubleCollectionConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\Generated\GeometryConverter.cs (1)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\Generated\Int32CollectionConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\Generated\PointCollectionConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\Generated\TransformConverter.cs (1)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\Generated\VectorCollectionConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\ImageSourceConverter.cs (1)
29public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media\PixelFormatConverter.cs (1)
24public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\Media\RequestCachePolicyConverter.cs (1)
21public override bool CanConvertFrom(ITypeDescriptorContext td, Type t)
System\Windows\Media3D\Generated\Matrix3DConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media3D\Generated\Point3DConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media3D\Generated\Point4DConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media3D\Generated\QuaternionConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media3D\Generated\Rect3DConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media3D\Generated\Size3DConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Media3D\Generated\Vector3DConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\TextDecorationCollectionConverter.cs (1)
42public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
PresentationFramework (19)
System\Windows\Controls\DataGridLengthConverter.cs (1)
22public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
33public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\CornerRadiusConverter.cs (1)
28public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\DeferrableContentConverter.cs (1)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\DialogResultConverter.cs (1)
36public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\EventSetterHandlerConverter.cs (1)
23public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\FigureLengthConverter.cs (1)
44public override bool CanConvertFrom(
System\Windows\FontSizeConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\GridLengthConverter.cs (1)
47public override bool CanConvertFrom(
System\Windows\Input\Command\CommandConverter.cs (1)
44public override bool CanConvertFrom( ITypeDescriptorContext context, Type sourceType )
System\Windows\LengthConverter.cs (1)
43public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\Markup\DependencyPropertyConverter.cs (1)
32public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Markup\RoutedEventConverter.cs (1)
20public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (1)
30public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Markup\TemplateKeyConverter.cs (1)
23public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\PropertyPathConverter.cs (1)
42public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\SystemKeyConverter.cs (1)
38public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\ThemeModeConverter.cs (1)
32public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
System\Windows\ThicknessConverter.cs (1)
36public override bool CanConvertFrom(ITypeDescriptorContext typeDescriptorContext, Type sourceType)
ReachFramework (3)
Serialization\ColorTypeConverter.cs (1)
49CanConvertFrom(
Serialization\FontTypeConverter.cs (1)
47CanConvertFrom(
Serialization\ImageSourceTypeConverter.cs (1)
52CanConvertFrom(
System.CodeDom (2)
Microsoft\CSharp\CSharpModifierAttributeConverter.cs (1)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) =>
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
16public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) =>
System.ComponentModel.TypeConverter (22)
System\ComponentModel\BaseNumberConverter.cs (1)
45public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\BooleanConverter.cs (1)
19public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\CharConverter.cs (1)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\CultureInfoConverter.cs (1)
43public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\DateOnlyConverter.cs (1)
20public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\DateTimeConverter.cs (1)
22public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\DateTimeOffsetConverter.cs (1)
21public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\EnumConverter.cs (1)
42public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\GuidConverter.cs (1)
22public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\NullableConverter.cs (1)
41public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\ReferenceConverter.cs (1)
33public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\StringConverter.cs (1)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\TimeOnlyConverter.cs (1)
20public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\TimeSpanConverter.cs (1)
22public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\TypeListConverter.cs (1)
32public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\UriTypeConverter.cs (1)
23public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\VersionConverter.cs (1)
22public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Drawing\ColorConverter.cs (1)
28public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Drawing\PointConverter.cs (1)
15public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Drawing\RectangleConverter.cs (1)
15public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Drawing\SizeConverter.cs (1)
15public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Drawing\SizeFConverter.cs (1)
15public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigurationConverterBase.cs (1)
15public override bool CanConvertFrom(ITypeDescriptorContext ctx, Type type)
System\Configuration\IdnElement.cs (1)
41public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System.Data.Common (1)
System\Data\ColumnTypeConverter.cs (1)
107public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) =>
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
45public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (1)
27public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System.Windows.Forms (13)
System\Resources\ResxFileRef.Converter.cs (1)
16public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (1)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
16public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
53public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
23public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
19public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
21public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
23public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (1)
19public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Input\CursorConverter.cs (1)
24public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Input\KeysConverter.cs (1)
130public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
23public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
298public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
20public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Windows\Forms\Design\DataMemberFieldConverter.cs (1)
11public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) =>
System.Windows.Forms.Primitives (1)
System\Windows\Forms\PaddingConverter.cs (1)
14public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) =>
System.Xaml (8)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (1)
19public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Windows\Markup\NameReferenceConverter.cs (1)
15public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Xaml\EventConverter.cs (1)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Xaml\Replacements\DateTimeConverter2.cs (1)
18public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
26public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Xaml\Replacements\TypeListConverter.cs (1)
19public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Xaml\Replacements\TypeTypeConverter.cs (1)
19public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System\Xaml\Schema\XamlTypeTypeConverter.cs (1)
14public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
System.Xaml.Tests (9)
System\Windows\Markup\ValueSerializerTests.cs (3)
467public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? sourceType) 491public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? sourceType) 504public override bool CanConvertFrom(ITypeDescriptorContext? context, Type? sourceType)
System\Xaml\Replacements\TypeUriConverterTests.cs (6)
217public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 230public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 243public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 256public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 269public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType) 282public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
92 references to CanConvertFrom
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
4620return base.CanConvertFrom(context, sourceType);
Microsoft.AspNetCore.Components.Tests (1)
BindConverterTest.cs (1)
397return base.CanConvertFrom(context, sourceType);
Microsoft.AspNetCore.Http.Abstractions (1)
PathString.cs (1)
515=> sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2913return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
SimpleTypeModelBinderIntegrationTest.cs (1)
836return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Converters\StringEnumConverter.cs (1)
72return base.CanConvertFrom(context, sourceType);
Microsoft.Maui.Controls.DesignTools (3)
GridLengthCollectionDesignTypeConverter.cs (1)
12 => sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
GridLengthDesignTypeConverter.cs (1)
12 => sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
KnownValuesDesignTypeConverter.cs (1)
16 => sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
PresentationCore (21)
System\Windows\Ink\StrokeCollectionConverter.cs (1)
40return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
34return base.CanConvertFrom(
System\Windows\Media\Generated\BrushConverter.cs (1)
33return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Generated\CacheModeConverter.cs (1)
33return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Generated\DoubleCollectionConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Generated\GeometryConverter.cs (1)
33return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Generated\Int32CollectionConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
33return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Generated\PointCollectionConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Generated\TransformConverter.cs (1)
33return base.CanConvertFrom(context, sourceType);
System\Windows\Media\Generated\VectorCollectionConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media\ImageSourceConverter.cs (1)
36return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\Matrix3DConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\Point3DConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\Point4DConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\QuaternionConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\Rect3DConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\Size3DConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
System\Windows\Media3D\Generated\Vector3DConverter.cs (1)
37return base.CanConvertFrom(context, sourceType);
PresentationFramework (2)
System\Windows\DeferrableContentConverter.cs (1)
23return base.CanConvertFrom(context, sourceType);
System\Windows\SystemKeyConverter.cs (1)
42return base.CanConvertFrom(context, sourceType);
ReachFramework (2)
Serialization\Manager\ReachSerializableProperties.cs (2)
469converter.CanConvertFrom(null,typeof(string)); 825converter.CanConvertFrom(null,typeof(string));
System.CodeDom (2)
Microsoft\CSharp\CSharpModifierAttributeConverter.cs (1)
17sourceType == typeof(string) ? true : base.CanConvertFrom(context, sourceType);
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
17sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System.ComponentModel.TypeConverter (25)
System\ComponentModel\BaseNumberConverter.cs (1)
47return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\BooleanConverter.cs (1)
21return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\CharConverter.cs (1)
20return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\CultureInfoConverter.cs (1)
45return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\DateOnlyConverter.cs (1)
22return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\DateTimeConverter.cs (1)
24return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\DateTimeOffsetConverter.cs (1)
23return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\EnumConverter.cs (1)
48return base.CanConvertFrom(context, sourceType);
System\ComponentModel\GuidConverter.cs (1)
24return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\NullableConverter.cs (2)
49return UnderlyingTypeConverter.CanConvertFrom(context, sourceType); 52return base.CanConvertFrom(context, sourceType);
System\ComponentModel\ReferenceConverter.cs (1)
40return base.CanConvertFrom(context, sourceType);
System\ComponentModel\StringConverter.cs (1)
20return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\TimeOnlyConverter.cs (1)
22return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\TimeSpanConverter.cs (1)
24return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\TypeConverter.cs (2)
22public bool CanConvertFrom(Type sourceType) => CanConvertFrom(null, sourceType); 315if (value == null || CanConvertFrom(context, value.GetType()))
System\ComponentModel\TypeListConverter.cs (1)
34return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\UriTypeConverter.cs (1)
25return sourceType == typeof(string) || sourceType == typeof(Uri) || base.CanConvertFrom(context, sourceType);
System\ComponentModel\VersionConverter.cs (1)
24return sourceType == typeof(string) || sourceType == typeof(Version) || base.CanConvertFrom(context, sourceType);
System\Drawing\ColorConverter.cs (1)
30return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\Drawing\PointConverter.cs (1)
17return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\Drawing\RectangleConverter.cs (1)
17return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\Drawing\SizeConverter.cs (1)
17return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\Drawing\SizeFConverter.cs (1)
17return sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System.Configuration.ConfigurationManager (1)
System\Configuration\IdnElement.cs (1)
47return base.CanConvertFrom(context, sourceType);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (1)
29return (sourceType == typeof(string)) || base.CanConvertFrom(context, sourceType);
System.Windows.Forms (15)
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (1)
19=> sourceType == typeof(byte[]) || base.CanConvertFrom(context, sourceType);
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
17=> sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (2)
55? _innerConverter.CanConvertFrom(context, sourceType) 56: base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
30return base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
26return base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
28return base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
30return base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
379if (!forceReadOnly && converter.CanConvertFrom(this, typeof(string)) && 873if (TypeConverter.CanConvertFrom(this, typeof(string)))
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (1)
26return base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Input\CursorConverter.cs (1)
31return base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Input\KeysConverter.cs (1)
131=> sourceType == typeof(string) || sourceType == typeof(Enum[]) || base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
30return base.CanConvertFrom(context, sourceType);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
25return base.CanConvertFrom(context, sourceType);
System.Windows.Forms.Design (5)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
160bool converterReadOnly = !PropertyDescriptor.Converter.CanConvertFrom(TypeDescriptorContext, typeof(string));
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
57if (!PropertyDescriptor.Converter.CanConvertFrom(_typeDescriptorContext, valueType))
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
305return base.CanConvertFrom(context, sourceType);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
21=> GetConverter(context).CanConvertFrom(context, sourceType);
System\Windows\Forms\Design\DataMemberFieldConverter.cs (1)
12sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\DataMemberFieldConverterTests.cs (2)
18Assert.True(s_converter.CanConvertFrom(s_context, typeof(string))); 19Assert.True(s_converter.CanConvertFrom(s_context, typeof(InstanceDescriptor)));
System.Windows.Forms.Primitives (1)
System\Windows\Forms\PaddingConverter.cs (1)
15sourceType == typeof(string) || base.CanConvertFrom(context, sourceType);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ListViewGroupConverterTests.cs (1)
54Assert.Equal(expected, converter.CanConvertFrom(mockContext.Object, typeof(string)));
System.Xaml (5)
System\Windows\Markup\NameReferenceConverter.cs (1)
22return base.CanConvertFrom(context, sourceType);
System\Xaml\EventConverter.cs (1)
25return base.CanConvertFrom(context, sourceType);
System\Xaml\Replacements\DateTimeConverter2.cs (1)
25return base.CanConvertFrom(context, sourceType);
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
33return base.CanConvertFrom(context, sourceType);
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
182return converter.CanConvertFrom(context, typeof(T));