224 types derived from TypeConverter
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
4602internal abstract class CSharpModifierAttributeConverter : TypeConverter
Microsoft.AspNetCore.Components.Tests (2)
BindConverterTest.cs (1)
388private class PersonConverter : TypeConverter
EventCallbackFactoryBinderExtensionsTest.cs (1)
688private class SecretMessageTypeConverter : TypeConverter
Microsoft.AspNetCore.Http.Abstractions (1)
PathString.cs (1)
512internal sealed class PathStringConverter : TypeConverter
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2909private class EmployeeConverter : TypeConverter
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (1)
1129private class ConvertibleFromStringConverter : TypeConverter
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (1)
213private class CanConvertFromStringConverter : TypeConverter
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
HeaderModelBinderIntegrationTest.cs (1)
496private class CanConvertFromStringConverter : TypeConverter
SimpleTypeModelBinderIntegrationTest.cs (1)
832private class SampleModelTypeConverter : TypeConverter
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Converters\StringEnumConverter.cs (1)
62: System.ComponentModel.TypeConverter
Microsoft.Maui (13)
Converters\CornerRadiusTypeConverter.cs (1)
8 public class CornerRadiusTypeConverter : TypeConverter
Converters\EasingTypeConverter.cs (1)
11 public class EasingTypeConverter : TypeConverter
Converters\FlexEnumsConverters.cs (7)
10 public class FlexJustifyTypeConverter : TypeConverter 49 public class FlexDirectionTypeConverter : TypeConverter 84 public class FlexAlignContentTypeConverter : TypeConverter 123 public class FlexAlignItemsTypeConverter : TypeConverter 158 public class FlexAlignSelfTypeConverter : TypeConverter 193 public class FlexWrapTypeConverter : TypeConverter 226 public class FlexBasisTypeConverter : TypeConverter
Converters\KeyboardTypeConverter.cs (1)
10 public class KeyboardTypeConverter : TypeConverter
Converters\ThicknessTypeConverter.cs (1)
11 public class ThicknessTypeConverter : TypeConverter
Primitives\GridLength.cs (1)
93 private sealed class GridLengthTypeConverter : TypeConverter
Primitives\SizeRequest.cs (1)
55 private sealed class SizeRequestTypeConverter : TypeConverter
Microsoft.Maui.Controls (40)
AcceleratorTypeConverter.cs (1)
17 public class AcceleratorTypeConverter : TypeConverter
BindablePropertyConverter.cs (1)
16 public sealed class BindablePropertyConverter : TypeConverter, IExtendedTypeConverter
Brush\BrushTypeConverter.cs (1)
15 public class BrushTypeConverter : TypeConverter
Button\Button.cs (1)
570 public sealed class ButtonContentTypeConverter : TypeConverter
ColumnDefinitionCollectionTypeConverter.cs (1)
12 public class ColumnDefinitionCollectionTypeConverter : TypeConverter
DecorableTextElement.cs (1)
15 public class TextDecorationConverter : TypeConverter
DoubleCollectionConverter.cs (1)
10 public class DoubleCollectionConverter : TypeConverter
FileImageSourceConverter.cs (1)
9 public sealed class FileImageSourceConverter : TypeConverter
FlowDirectionConverter.cs (1)
8 public class FlowDirectionConverter : TypeConverter
FontAttributes.cs (1)
22 public sealed class FontAttributesConverter : TypeConverter
FontSizeConverter.cs (1)
11 public class FontSizeConverter : TypeConverter, IExtendedTypeConverter
FormattedString.cs (1)
92 private sealed class FormattedStringConverter : TypeConverter
GridLengthTypeConverter.cs (1)
10 public class GridLengthTypeConverter : TypeConverter
ImageSourceConverter.cs (1)
11 public sealed class ImageSourceConverter : TypeConverter
Items\CarouselLayoutTypeConverter.cs (1)
9 public class CarouselLayoutTypeConverter : TypeConverter
Items\ItemsLayoutTypeConverter.cs (1)
9 public class ItemsLayoutTypeConverter : TypeConverter
Layout\BoundsTypeConverter.cs (1)
11 public sealed class BoundsTypeConverter : TypeConverter
LayoutOptionsConverter.cs (1)
13 public sealed class LayoutOptionsConverter : TypeConverter
LegacyLayouts\ConstraintTypeConverter.cs (1)
9 public class ConstraintTypeConverter : TypeConverter
ListStringTypeConverter.cs (1)
12 public class ListStringTypeConverter : TypeConverter
ReferenceTypeConverter.cs (1)
14 public sealed class ReferenceTypeConverter : TypeConverter, IExtendedTypeConverter
ResourceDictionary.cs (1)
396 public class RDSourceTypeConverter : TypeConverter, IExtendedTypeConverter
RowDefinitionCollectionTypeConverter.cs (1)
12 public class RowDefinitionCollectionTypeConverter : TypeConverter
Shapes\MatrixTypeConverter.cs (1)
9 public class MatrixTypeConverter : TypeConverter
Shapes\PathFigureCollectionConverter.cs (1)
13 public class PathFigureCollectionConverter : TypeConverter
Shapes\PathGeometryConverter.cs (1)
9 public class PathGeometryConverter : TypeConverter
Shapes\PointCollectionConverter.cs (1)
12 public class PointCollectionConverter : TypeConverter
Shapes\StrokeShapeTypeConverter.cs (1)
12 public class StrokeShapeTypeConverter : TypeConverter
Shapes\TransformTypeConverter.cs (1)
9 public class TransformTypeConverter : TypeConverter
Shell\ShellContent.cs (1)
428 private sealed class ShellContentConverter : TypeConverter
Shell\ShellItem.cs (1)
347 private sealed class ShellItemConverter : TypeConverter
Shell\ShellNavigationState.cs (1)
104 private sealed class ShellNavigationStateTypeConverter : TypeConverter
Shell\ShellSection.cs (1)
1247 private sealed class ShellSectionTypeConverter : TypeConverter
TextAlignment.cs (1)
8 public class TextAlignmentConverter : TypeConverter
TypeTypeConverter.cs (1)
11 public sealed class TypeTypeConverter : TypeConverter, IExtendedTypeConverter
UriTypeConverter.cs (1)
10 public class UriTypeConverter : TypeConverter
VisualElement\VisualElement.cs (1)
2379 public class VisibilityConverter : TypeConverter
Visuals\VisualTypeConverter.cs (1)
17 public class VisualTypeConverter : TypeConverter
WebView\WebViewSource.cs (1)
35 private sealed class WebViewSourceTypeConverter : TypeConverter
WebView\WebViewSourceTypeConverter.cs (1)
9 public class WebViewSourceTypeConverter : TypeConverter
Microsoft.Maui.Controls.DesignTools (3)
GridLengthCollectionDesignTypeConverter.cs (1)
7 public class GridLengthCollectionDesignTypeConverter : TypeConverter
GridLengthDesignTypeConverter.cs (1)
7 public class GridLengthDesignTypeConverter : TypeConverter
KnownValuesDesignTypeConverter.cs (1)
7 public abstract class KnownValuesDesignTypeConverter : TypeConverter
Microsoft.Maui.Graphics (7)
Converters\ColorTypeConverter.cs (1)
9 public class ColorTypeConverter : TypeConverter
Converters\PointFTypeConverter.cs (1)
9 public class PointFTypeConverter : TypeConverter
Converters\PointTypeConverter.cs (1)
9 public class PointTypeConverter : TypeConverter
Converters\RectFTypeConverter.cs (1)
8 public class RectFTypeConverter : TypeConverter
Converters\RectTypeConverter.cs (1)
8 public class RectTypeConverter : TypeConverter
Converters\SizeFTypeConverter.cs (1)
8 public class SizeFTypeConverter : TypeConverter
Converters\SizeTypeConverter.cs (1)
8 public class SizeTypeConverter : TypeConverter
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\Markup\DateTimeConverter2.cs (1)
20internal class DateTimeConverter2 : TypeConverter
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\Markup\TypeTypeConverter.cs (1)
16internal class TypeTypeConverter : TypeConverter
PresentationCore (41)
MS\Internal\IListConverters.cs (1)
24public abstract class BaseIListConverter : TypeConverter
System\Windows\CultureInfoConverter.cs (1)
30public class CultureInfoIetfLanguageTagConverter : TypeConverter
System\Windows\DurationConverter.cs (1)
17public class DurationConverter : TypeConverter
System\Windows\FontStretchConverter.cs (1)
15public sealed class FontStretchConverter : TypeConverter
System\Windows\FontStyleConverter.cs (1)
15public sealed class FontStyleConverter : TypeConverter
System\Windows\FontWeightConverter.cs (1)
15public sealed class FontWeightConverter : TypeConverter
System\Windows\Ink\StrokeCollectionConverter.cs (1)
19public class StrokeCollectionConverter : TypeConverter
System\Windows\Input\Command\KeyGestureConverter.cs (1)
19public class KeyGestureConverter : TypeConverter
System\Windows\Input\Command\MouseActionConverter.cs (1)
13public class MouseActionConverter : TypeConverter
System\Windows\Input\Command\MouseGestureConverter.cs (1)
21public class MouseGestureConverter : TypeConverter
System\Windows\Input\CursorConverter.cs (1)
18public class CursorConverter : TypeConverter
System\Windows\Input\InputScopeConverter.cs (1)
23public class InputScopeConverter : TypeConverter
System\Windows\Input\InputScopeNameConverter.cs (1)
23public class InputScopeNameConverter : TypeConverter
System\Windows\Markup\XmlLanguageConverter.cs (1)
23public class XmlLanguageConverter: TypeConverter
System\Windows\Media\Animation\KeySplineConverter.cs (1)
21public class KeySplineConverter : TypeConverter
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
18public class KeyTimeConverter : TypeConverter
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
17public sealed class RepeatBehaviorConverter : TypeConverter
System\Windows\Media\ColorConverter.cs (1)
16public sealed class ColorConverter : TypeConverter
System\Windows\Media\FontFamilyConverter.cs (1)
19public class FontFamilyConverter : TypeConverter
System\Windows\Media\Generated\BrushConverter.cs (1)
18public sealed class BrushConverter : TypeConverter
System\Windows\Media\Generated\CacheModeConverter.cs (1)
18public sealed class CacheModeConverter : TypeConverter
System\Windows\Media\Generated\DoubleCollectionConverter.cs (1)
22public sealed class DoubleCollectionConverter : TypeConverter
System\Windows\Media\Generated\GeometryConverter.cs (1)
18public sealed class GeometryConverter : TypeConverter
System\Windows\Media\Generated\Int32CollectionConverter.cs (1)
22public sealed class Int32CollectionConverter : TypeConverter
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
18public sealed class PathFigureCollectionConverter : TypeConverter
System\Windows\Media\Generated\PointCollectionConverter.cs (1)
22public sealed class PointCollectionConverter : TypeConverter
System\Windows\Media\Generated\TransformConverter.cs (1)
18public sealed class TransformConverter : TypeConverter
System\Windows\Media\Generated\VectorCollectionConverter.cs (1)
22public sealed class VectorCollectionConverter : TypeConverter
System\Windows\Media\ImageSourceConverter.cs (1)
21public class ImageSourceConverter : TypeConverter
System\Windows\Media\PixelFormatConverter.cs (1)
19public sealed class PixelFormatConverter : TypeConverter
System\Windows\Media\RequestCachePolicyConverter.cs (1)
16public sealed class RequestCachePolicyConverter : TypeConverter
System\Windows\Media3D\Generated\Matrix3DConverter.cs (1)
22public sealed class Matrix3DConverter : TypeConverter
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (1)
22public sealed class Point3DCollectionConverter : TypeConverter
System\Windows\Media3D\Generated\Point3DConverter.cs (1)
22public sealed class Point3DConverter : TypeConverter
System\Windows\Media3D\Generated\Point4DConverter.cs (1)
22public sealed class Point4DConverter : TypeConverter
System\Windows\Media3D\Generated\QuaternionConverter.cs (1)
22public sealed class QuaternionConverter : TypeConverter
System\Windows\Media3D\Generated\Rect3DConverter.cs (1)
22public sealed class Rect3DConverter : TypeConverter
System\Windows\Media3D\Generated\Size3DConverter.cs (1)
22public sealed class Size3DConverter : TypeConverter
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (1)
22public sealed class Vector3DCollectionConverter : TypeConverter
System\Windows\Media3D\Generated\Vector3DConverter.cs (1)
22public sealed class Vector3DConverter : TypeConverter
System\Windows\TextDecorationCollectionConverter.cs (1)
15public sealed class TextDecorationCollectionConverter : TypeConverter
PresentationFramework (22)
System\Windows\Controls\DataGridLengthConverter.cs (1)
17public class DataGridLengthConverter : TypeConverter
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
21public class VirtualizationCacheLengthConverter : TypeConverter
System\Windows\CornerRadiusConverter.cs (1)
25public class CornerRadiusConverter : TypeConverter
System\Windows\DeferrableContentConverter.cs (1)
14public class DeferrableContentConverter : TypeConverter
System\Windows\DialogResultConverter.cs (1)
20public class DialogResultConverter: TypeConverter
System\Windows\DynamicResourceExtensionConverter.cs (1)
22public class DynamicResourceExtensionConverter: TypeConverter
System\Windows\EventSetterHandlerConverter.cs (1)
16public sealed class EventSetterHandlerConverter : TypeConverter
System\Windows\FigureLengthConverter.cs (1)
24public class FigureLengthConverter: TypeConverter
System\Windows\FontSizeConverter.cs (1)
22public class FontSizeConverter : TypeConverter
System\Windows\GridLengthConverter.cs (1)
27public class GridLengthConverter: TypeConverter
System\Windows\Input\Command\CommandConverter.cs (1)
24public sealed class CommandConverter : TypeConverter
System\Windows\LengthConverter.cs (1)
25public class LengthConverter: TypeConverter
System\Windows\Markup\DependencyPropertyConverter.cs (1)
22public sealed class DependencyPropertyConverter : TypeConverter
System\Windows\Markup\RoutedEventConverter.cs (1)
15public sealed class RoutedEventConverter : TypeConverter
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (1)
20public sealed class SetterTriggerConditionValueConverter : TypeConverter
System\Windows\Markup\TemplateKeyConverter.cs (1)
20public sealed class TemplateKeyConverter : TypeConverter
System\Windows\PropertyPathConverter.cs (1)
26public sealed class PropertyPathConverter: TypeConverter
System\Windows\SystemKeyConverter.cs (1)
24internal class SystemKeyConverter : TypeConverter
System\Windows\TemplateBindingExpressionConverter.cs (1)
23public class TemplateBindingExpressionConverter: TypeConverter
System\Windows\TemplateBindingExtensionConverter.cs (1)
23public class TemplateBindingExtensionConverter : TypeConverter
System\Windows\ThemeModeConverter.cs (1)
19public class ThemeModeConverter: TypeConverter
System\Windows\ThicknessConverter.cs (1)
26public class ThicknessConverter : TypeConverter
System.CodeDom (2)
Microsoft\CSharp\CSharpModifierAttributeConverter.cs (1)
10internal abstract class CSharpModifierAttributeConverter : TypeConverter
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
10internal abstract class VBModifierAttributeConverter : TypeConverter
System.ComponentModel.TypeConverter (27)
System\ComponentModel\BaseNumberConverter.cs (1)
12public abstract class BaseNumberConverter : TypeConverter
System\ComponentModel\BooleanConverter.cs (1)
11public class BooleanConverter : TypeConverter
System\ComponentModel\CharConverter.cs (1)
12public class CharConverter : TypeConverter
System\ComponentModel\CollectionConverter.cs (1)
14public class CollectionConverter : TypeConverter
System\ComponentModel\CultureInfoConverter.cs (1)
18public class CultureInfoConverter : TypeConverter
System\ComponentModel\DateOnlyConverter.cs (1)
13public class DateOnlyConverter : TypeConverter
System\ComponentModel\DateTimeConverter.cs (1)
15public class DateTimeConverter : TypeConverter
System\ComponentModel\DateTimeOffsetConverter.cs (1)
14public class DateTimeOffsetConverter : TypeConverter
System\ComponentModel\Design\DesignerOptionService.cs (1)
435internal sealed class DesignerOptionConverter : TypeConverter
System\ComponentModel\EnumConverter.cs (1)
18public class EnumConverter : TypeConverter
System\ComponentModel\ExpandableObjectConverter.cs (1)
12public class ExpandableObjectConverter : TypeConverter
System\ComponentModel\GuidConverter.cs (1)
16public class GuidConverter : TypeConverter
System\ComponentModel\MultilineStringConverter.cs (1)
12public class MultilineStringConverter : TypeConverter
System\ComponentModel\NullableConverter.cs (1)
16public class NullableConverter : TypeConverter
System\ComponentModel\ReferenceConverter.cs (1)
16public class ReferenceConverter : TypeConverter
System\ComponentModel\StringConverter.cs (1)
12public class StringConverter : TypeConverter
System\ComponentModel\TimeOnlyConverter.cs (1)
13public class TimeOnlyConverter : TypeConverter
System\ComponentModel\TimeSpanConverter.cs (1)
15public class TimeSpanConverter : TypeConverter
System\ComponentModel\TypeListConverter.cs (1)
13public abstract class TypeListConverter : TypeConverter
System\ComponentModel\UriTypeConverter.cs (1)
17public class UriTypeConverter : TypeConverter
System\ComponentModel\VersionConverter.cs (1)
16public class VersionConverter : TypeConverter
System\Drawing\ColorConverter.cs (1)
15public class ColorConverter : TypeConverter
System\Drawing\PointConverter.cs (1)
13public class PointConverter : TypeConverter
System\Drawing\RectangleConverter.cs (1)
13public class RectangleConverter : TypeConverter
System\Drawing\SizeConverter.cs (1)
13public class SizeConverter : TypeConverter
System\Drawing\SizeFConverter.cs (1)
13public class SizeFConverter : TypeConverter
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (1)
14public class ExtendedProtectionPolicyTypeConverter : TypeConverter
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigurationConverterBase.cs (1)
8public abstract class ConfigurationConverterBase : TypeConverter
System\Configuration\IdnElement.cs (1)
39private sealed class UriIdnScopeTypeConverter : TypeConverter
System.Data.Common (1)
System\Data\ColumnTypeConverter.cs (1)
16internal sealed class ColumnTypeConverter : TypeConverter
System.Drawing.Common (4)
Special\NotSupported.cs (4)
366public partial class FontConverter : System.ComponentModel.TypeConverter 378public sealed partial class FontNameConverter : System.ComponentModel.TypeConverter, System.IDisposable 819public partial class ImageConverter : System.ComponentModel.TypeConverter 831public partial class ImageFormatConverter : System.ComponentModel.TypeConverter
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
22public class RibbonControlLengthConverter : TypeConverter
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (1)
19public class StringCollectionConverter : TypeConverter
System.Windows.Forms (19)
System\Resources\ResxFileRef.Converter.cs (1)
14public class Converter : TypeConverter
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (1)
15public class StateConverter : TypeConverter
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
9internal class Com2EnumConverter : TypeConverter
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
13internal class Com2ExtendedTypeConverter : TypeConverter
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleConverter.cs (1)
11public class DataGridViewCellStyleConverter : TypeConverter
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
17public class LinkAreaConverter : TypeConverter
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
13public class LinkConverter : TypeConverter
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
15internal class ListViewGroupConverter : TypeConverter
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
17public class SelectionRangeConverter : TypeConverter
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionConverter.cs (1)
14private class ExceptionConverter : TypeConverter
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (1)
13public class OpacityConverter : TypeConverter
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (1)
16public class TreeNodeConverter : TypeConverter
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
12public class ListBindingConverter : TypeConverter
System\Windows\Forms\Input\CursorConverter.cs (1)
16public class CursorConverter : TypeConverter
System\Windows\Forms\Input\KeysConverter.cs (1)
15public class KeysConverter : TypeConverter, IComparer
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
11internal class TableLayoutPanelCellPositionTypeConverter : TypeConverter
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (1)
12internal class StyleConverter : TypeConverter
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
12public class TableLayoutSettingsTypeConverter : TypeConverter
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdges.cs (1)
10public class DockPaddingEdgesConverter : TypeConverter
System.Windows.Forms.Design (4)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
282private class EventConverter : TypeConverter
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
292private class ReadOnlyCollectionConverter : TypeConverter
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
13private class ModifierConverter : TypeConverter
System\Windows\Forms\Design\DataMemberFieldConverter.cs (1)
9internal class DataMemberFieldConverter : TypeConverter
System.Windows.Forms.Primitives (1)
System\Windows\Forms\PaddingConverter.cs (1)
12public class PaddingConverter : TypeConverter
System.Windows.Forms.Tests (7)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
1371private class CustomTypeConverter : TypeConverter
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (2)
1857private class NullStringConverter : TypeConverter 1865private class EmptyStringConverter : TypeConverter
System\Windows\Forms\ListControlTests.cs (3)
3040private class CustomTypeConverter : TypeConverter 3058private class NonCriticalThrowingTypeConverter : TypeConverter 3072private class CriticalThrowingTypeConverter : TypeConverter
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (1)
229private class CustomTypeConverter : TypeConverter
System.Xaml (10)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (1)
17internal class TypeUriConverter : TypeConverter
System\Windows\Markup\NameReferenceConverter.cs (1)
13public class NameReferenceConverter: TypeConverter
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (1)
14internal class StaticExtensionConverter : TypeConverter
System\Windows\Markup\TypeExtensionConverter.cs (1)
14internal class TypeExtensionConverter : TypeConverter
System\Xaml\EventConverter.cs (1)
10internal class EventConverter : TypeConverter
System\Xaml\Replacements\DateTimeConverter2.cs (1)
16internal class DateTimeConverter2 : TypeConverter
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
14internal class DateTimeOffsetConverter2 : TypeConverter
System\Xaml\Replacements\TypeListConverter.cs (1)
15internal class TypeListConverter : TypeConverter
System\Xaml\Replacements\TypeTypeConverter.cs (1)
17internal class TypeTypeConverter : TypeConverter
System\Xaml\Schema\XamlTypeTypeConverter.cs (1)
12public class XamlTypeTypeConverter : TypeConverter
System.Xaml.Tests (6)
System\Windows\Markup\ValueSerializerTests.cs (6)
459public class CustomTypeConverter : TypeConverter 484public class CannotConvertToTypeConverter : TypeConverter 497public class CannotConvertFromTypeConverter : TypeConverter 510public class PublicClass : TypeConverter 516internal class InternalClass : TypeConverter 521internal class PrivateClass : TypeConverter
WinFormsControlsTest (1)
UserControls\UserControlWithObjectCollectionEditor.cs (1)
31internal class SomeCollectionTypeConverter : TypeConverter
6 instantiations of TypeConverter
System.ComponentModel.TypeConverter (2)
System\ComponentModel\CustomTypeDescriptor.cs (1)
80return new TypeConverter();
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
170[typeof(object)] = new IntrinsicTypeConverterData((type) => new TypeConverter()),
System.Windows.Forms (3)
System\Windows\Forms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (1)
36get => _converter ??= new TypeConverter();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
482return new TypeConverter(); 515return localConverter ?? new TypeConverter();
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
464typeConverter ??= new TypeConverter();
685 references to TypeConverter
BinaryFormatTests (2)
FormatTests\FormattedObject\BinaryFormattedTypes.cs (2)
22var converter = TypeDescriptor.GetConverter(type); 44var converter = TypeDescriptor.GetConverter(type);
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
685MetadataReference.CreateFromFile(typeof(TypeConverter).Assembly.Location),
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
154public virtual TypeConverter GetConverter(Type type)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
78public override TypeConverter GetConverter(Type type)
Microsoft.AspNetCore.Components (4)
BindConverter.cs (4)
1836var typeConverter = TypeDescriptor.GetConverter(typeof(T)); 1840$"The type '{typeof(T).FullName}' does not have an associated {typeof(TypeConverter).Name} that supports " + 2043var typeConverter = TypeDescriptor.GetConverter(typeof(T)); 2047$"The type '{typeof(T).FullName}' does not have an associated {typeof(TypeConverter).Name} that supports " +
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
PathStringTests.cs (1)
292var converter = TypeDescriptor.GetConverter(typeof(PathString));
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelMetadata.cs (2)
474/// A complex type is defined as a <see cref="Type"/> without a <see cref="TypeConverter"/> that can convert 568/// Gets a value indicating whether or not <see cref="ModelType"/> has a <see cref="TypeConverter"/>
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
17private readonly TypeConverter _typeConverter;
ModelBinding\ModelBindingHelper.cs (1)
692var converter = TypeDescriptor.GetConverter(destinationType);
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\EnumTypeModelBinderTest.cs (4)
76var enumConverter = TypeDescriptor.GetConverter(modelType); 100var enumConverter = TypeDescriptor.GetConverter(GetUnderlyingType(modelType)); 162var enumConverter = TypeDescriptor.GetConverter(modelType); 187var enumConverter = TypeDescriptor.GetConverter(GetUnderlyingType(modelType));
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
952TypeConverter converter = TypeDescriptor.GetConverter(type);
Microsoft.Maui.Controls (18)
BindableProperty.cs (3)
43 internal static readonly Dictionary<Type, TypeConverter> KnownTypeConverters = new Dictionary<Type, TypeConverter> 227 if (KnownTypeConverters.TryGetValue(returnType, out TypeConverter typeConverterTo) && typeConverterTo.CanConvertFrom(valueType))
TypeConversionHelper.cs (2)
53 if (TryGetTypeConverter(valueType, out var converter) && converter is not null && converter.CanConvertTo(targetType)) 72 private static bool TryGetTypeConverter(Type type, [NotNullWhen(true)] out TypeConverter? converter)
Xaml\TypeConversionExtensions.cs (13)
43 static readonly ConcurrentDictionary<MemberInfo, TypeConverter> s_converterCache = new(); 48 Func<TypeConverter> getConverter = () => 56 return (TypeConverter)Activator.CreateInstance(convertertype); 65 Func<TypeConverter> getConverter = () => 67 TypeConverter converter = null; 87 internal static bool TryGetTypeConverter(this MemberInfo memberInfo, [NotNullWhen(true)] out TypeConverter converter) 93 converter = (TypeConverter)Activator.CreateInstance(converterType); 118 ret = value.ConvertTo(toType, (Func<TypeConverter>)null, serviceProvider, out exception); 123 Func<TypeConverter> getConverter = () => (TypeConverter)Activator.CreateInstance(convertertype); 130 internal static object ConvertTo(this object value, Type toType, Func<TypeConverter> getConverter, 140 TypeConverter converter; 154 if (converter is TypeConverter xfTypeConverter)
Microsoft.Maui.Controls.Xaml (4)
ApplyPropertiesVisitor.cs (3)
174 addMethod.Invoke(source, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, new XamlServiceProvider(node, Context), out xpe) }); 753 addMethod.Invoke(collection, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, serviceProvider, out exception) }); 821 addMethod.Invoke(collection, new[] { value.ConvertTo(addMethod.GetParameters()[0].ParameterType, (Func<TypeConverter>)null, serviceProvider, out exception) });
MarkupExtensionParser.cs (1)
100 (Func<TypeConverter>)null, serviceProvider, out Exception converterException);
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
337Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(DiskSpaceExhaustedOption)) 406Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(LogFileLocation)) 432Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(LogFileCreationScheduleOption))
netstandard (1)
netstandard.cs (1)
418[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.TypeConverter))]
PresentationBuildTasks (5)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (3)
1650TypeConverter converter = codeProvider.GetConverter(typeof(MemberAttributes)); 1718TypeConverter converter = codeProvider.GetConverter(typeof(TypeAttributes)); 1783TypeConverter converter = null;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2544TypeConverter boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
431TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
PresentationCore (16)
MS\Internal\FontFace\CompositeFontParser.cs (2)
956private TypeConverter _doubleTypeConverter; 957private TypeConverter _xmlLanguageTypeConverter;
System\Windows\Input\Command\KeyGesture.cs (1)
310private static TypeConverter _keyGestureConverter = new KeyGestureConverter();
System\Windows\Input\Command\KeyGestureValueSerializer.cs (2)
63TypeConverter converter = TypeDescriptor.GetConverter(typeof(KeyGesture)); 78TypeConverter converter = TypeDescriptor.GetConverter(typeof(KeyGesture));
System\Windows\Input\Command\MouseActionValueSerializer.cs (2)
52TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseAction)); 67TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseAction));
System\Windows\Input\Command\MouseGestureConverter.cs (4)
75TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction)); 86TypeConverter modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys)); 154TypeConverter modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys)); 163TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction));
System\Windows\Input\Command\MouseGestureValueSerializer.cs (2)
64TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseGesture)); 79TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseGesture));
System\Windows\Input\CursorConverter.cs (3)
56public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) 70_standardValues = new TypeConverter.StandardValuesCollection(values); 230private TypeConverter.StandardValuesCollection _standardValues;
PresentationCore.Tests (3)
BinaryFormat\BinaryFormattedTypes.cs (2)
23var converter = TypeDescriptor.GetConverter(type); 45var converter = TypeDescriptor.GetConverter(type);
TestUtilities\BinaryFormatTestExtensions.cs (1)
49TypeConverter converter;
PresentationFramework (80)
MS\Internal\Data\DefaultValueConverter.cs (7)
34protected DefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType, 61TypeConverter typeConverter; 176internal static TypeConverter GetConverter(Type type) 178TypeConverter typeConverter = null; 364private TypeConverter _typeConverter; 384public SourceDefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType, 420public TargetDefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType,
MS\Internal\Data\PropertyPathWorker.cs (1)
1402TypeConverter tc = TypeDescriptor.GetConverter(paramType);
System\Windows\Controls\ContentPresenter.cs (3)
1004TypeConverter tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content)); 1106TypeConverter tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content)); 1163TypeConverter tc = null;
System\Windows\Data\BindingExpressionBase.cs (1)
2189TypeConverter converter = DefaultValueConverter.GetConverter(dp.PropertyType);
System\Windows\Documents\DPTypeDescriptorContext.cs (2)
73System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType); 130System.ComponentModel.TypeConverter typeConverter = new CultureInfoIetfLanguageTagConverter();
System\Windows\Documents\TextRange.cs (1)
798System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(formattingProperty.PropertyType);
System\Windows\Documents\TextRangeSerialization.cs (1)
1126System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
861internal static TypeConverter CreateKnownTypeConverter(Int16 converterId) 863TypeConverter o = null;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (7)
33private Dictionary<int, TypeConverter> _typeConverterMap = new Dictionary<int, TypeConverter>(); 34private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 1518TypeConverter converter; 1580TypeConverter converter = null; 1616internal virtual object CreateTypeConverterMarkupExtension(XamlMember property, TypeConverter converter, object propertyValue, Baml2006ReaderSettings settings)
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
46internal override object CreateTypeConverterMarkupExtension(XamlMember property, TypeConverter converter, object propertyValue, Baml2006ReaderSettings settings)
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (2)
11private TypeConverter _converter; 14public TypeConverterMarkupExtension(TypeConverter converter, object value)
System\Windows\Markup\Baml2006\WpfKnownMember.cs (1)
149protected override XamlValueConverter<TypeConverter> LookupTypeConverter()
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
212protected override XamlValueConverter<TypeConverter> LookupTypeConverter()
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
252internal XamlValueConverter<TypeConverter> GetTypeConverter(Type converterType) 256return base.GetValueConverter<TypeConverter>(typeof(EnumConverter), GetXamlType(converterType)); 260return base.GetValueConverter<TypeConverter>(converterType, null);
System\Windows\Markup\BamlMapTable.cs (16)
226internal TypeConverter GetKnownConverterFromType(Type type) 230TypeConverter converter; 246internal static TypeConverter GetKnownConverterFromType_NoCache(Type type) 250TypeConverter tc; 270tc = KnownTypes.CreateKnownElement(typeId) as TypeConverter; 529internal TypeConverter GetConverterFromId ( 534TypeConverter tc = null; 569tc = CreateKnownTypeFromId(typeId) as TypeConverter; 584tc = Activator.CreateInstance(t) as TypeConverter; 588tc = XamlTypeMapper.CreateInternalInstance(pc, t) as TypeConverter; 1698private TypeConverter GetConverterFromCache(short typeId) 1700TypeConverter tc = null; 1703tc = _converterCache[typeId] as TypeConverter; 1709private TypeConverter GetConverterFromCache(Type type) 1711TypeConverter tc = null; 1714tc = _converterCache[type] as TypeConverter;
System\Windows\Markup\BamlReader.cs (1)
1072TypeConverter converter = TypeDescriptor.GetConverter(value.GetType());
System\Windows\Markup\BamlRecordReader.cs (1)
1603TypeConverter converter = XamlTypeMapper.GetTypeConverter(paramInfo.ParameterType);
System\Windows\Markup\BamlRecords.cs (1)
2544TypeConverter boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
System\Windows\Markup\ParserContext.cs (2)
99TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(XmlSpace)); 431TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
System\Windows\Markup\Primitives\ElementMarkupObject.cs (3)
356TypeConverter converter = TypeDescriptor.GetConverter(instance); 803TypeConverter converter = TypeDescriptor.GetConverter(value); 901TypeConverter converter = TypeDescriptor.GetConverter(value);
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (3)
111System.Xaml.Schema.XamlValueConverter<TypeConverter> typeConverter = null; 143TypeConverter converter = null; 170converter = (TypeConverter)typeConverter.ConverterInstance;
System\Windows\Markup\XamlTypeMapper.cs (12)
530TypeConverter typeConvert; 597else if (typeConvert.GetType() == typeof(TypeConverter)) 3470internal TypeConverter GetTypeConverter(Type type) 3475TypeConverter typeConverter = null; 3497typeConverter = CreateInstance(converterType) as TypeConverter; 3558internal TypeConverter GetPropertyConverter(Type propType, object dpOrPiOrMi) 3561TypeConverter typeConverter = null; 3572typeConverter = (TypeConverter)ret; 3585typeConverter = CreateInstance(converterType) as TypeConverter; 3955internal TypeConverter Converter 4052TypeConverter converter) 4068TypeConverter _typeConverter;
System\Windows\NullableBoolConverter.cs (3)
56public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) 58return _standardValues ??= new TypeConverter.StandardValuesCollection(new Nullable<bool>[] 68private static TypeConverter.StandardValuesCollection _standardValues;
System\Windows\PropertyPath.cs (1)
783TypeConverter tc = TypeDescriptor.GetConverter(type);
System\Windows\PropertyPathConverter.cs (1)
267TypeConverter converter = TypeDescriptor.GetConverter(type);
System\Windows\SourceUriTypeConverterMarkupExtension.cs (1)
20public SourceUriTypeConverterMarkupExtension(TypeConverter converter, object value, Assembly assemblyInfo) : base(converter, value)
System\Windows\StyleHelper.cs (1)
5908TypeConverter typeConverter = DefaultValueConverter.GetConverter(stateType);
System\Windows\TemplateContent.cs (1)
861TypeConverter converter = null;
ReachFramework (39)
Serialization\Manager\MetroSerializationManager.cs (5)
147TypeConverter 165TypeConverter 722TypeConverter typeConverter = _serializationManager.GetTypeConverter(serializableObject); 803TypeConverter typeConverterForProperty = null; 966TypeConverter typeConverter = _serializationManager.GetTypeConverter(serializableObjectType);
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
173TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
211TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
252TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
292TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedPageSerializer.cs (1)
328TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedPageSerializerAsync.cs (1)
300TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachSerializableProperties.cs (4)
466TypeConverter converter = this.TypeConverter; 582TypeConverter 587TypeConverter converter = null; 822TypeConverter converter = this.TypeConverter;
Serialization\Manager\ReachSerializationCacheItems.cs (10)
70TypeConverter typeConverter 106TypeConverter typeConverterForProperty = null; 171TypeConverter 187out TypeConverter typeConverterForProperty, 264TypeConverter typeConverter; 298TypeConverter typeConverterForProperty, 345TypeConverter 425TypeConverter typeConverterForProperty; 445TypeConverter typeConverterForProperty, 470out TypeConverter typeConverterForProperty,
Serialization\Manager\XpsOMFixedPageSerializer.cs (1)
286TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\XpsOMSerializationManager.cs (4)
209TypeConverter 214TypeConverter typeConverter = null; 241TypeConverter 246TypeConverter typeConverter = null;
Serialization\Manager\XpsSerializationManager.cs (4)
365TypeConverter 370TypeConverter typeConverter = null; 397TypeConverter 402TypeConverter typeConverter = null;
Serialization\VisualSerializer.cs (3)
323TypeConverter converter = _manager.GetTypeConverter(typeof(Color)); 609TypeConverter converter = _manager.GetTypeConverter(typeof(BitmapSource)); 2081TypeConverter converter = _manager.GetTypeConverter(typeof(GlyphRun));
Serialization\VisualTreeFlattener.cs (2)
233internal override TypeConverter GetTypeConverter(Object serializedObject) 238internal override TypeConverter GetTypeConverter(Type objType)
System (1)
src\libraries\shims\System\ref\System.cs (1)
404[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.TypeConverter))]
System.CodeDom (3)
Microsoft\CSharp\CSharpCodeProvider.cs (1)
41public override TypeConverter GetConverter(Type type) =>
Microsoft\VisualBasic\VBCodeProvider.cs (1)
43public override TypeConverter GetConverter(Type type) =>
System\CodeDom\Compiler\CodeDomProvider.cs (1)
134public virtual TypeConverter GetConverter(Type type) => TypeDescriptor.GetConverter(type);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (2)
228TypeConverter converter = GetOperandTypeConverter(); 255private TypeConverter GetOperandTypeConverter() =>
System.ComponentModel.TypeConverter (84)
System\ComponentModel\AmbientValueAttribute.cs (1)
45static TypeConverter TypeDescriptorGetConverter([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) => TypeDescriptor.GetConverter(type);
System\ComponentModel\CustomTypeDescriptor.cs (4)
72[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage)] 73public virtual TypeConverter? GetConverter() 87public virtual TypeConverter? GetConverterFromRegisteredType() 110TypeConverter? Forward() => GetConverter();
System\ComponentModel\EnumConverter.cs (1)
314/// <see cref='System.ComponentModel.TypeConverter.GetStandardValues()'/>
System\ComponentModel\IComNativeDescriptorHandler.cs (1)
16TypeConverter GetConverter(object component);
System\ComponentModel\ICustomTypeDescriptor.cs (3)
32[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage)] 33TypeConverter? GetConverter(); 87TypeConverter? GetConverterFromRegisteredType()
System\ComponentModel\NullableConverter.cs (3)
145/// <see cref='System.ComponentModel.TypeConverter.CreateInstance(IDictionary)'/> to create a new value, 216/// <see cref='System.ComponentModel.TypeConverter.GetStandardValues()'/> is an exclusive 277public TypeConverter UnderlyingTypeConverter { get; }
System\ComponentModel\PropertyDescriptor.cs (8)
20private TypeConverter? _converter; 66public virtual TypeConverter Converter 81if (converterType != null && typeof(TypeConverter).IsAssignableFrom(converterType)) 83_converter = (TypeConverter)CreateInstance(converterType)!; 96public virtual TypeConverter ConverterFromRegisteredType 121TypeConverter? CreateConverterFromTypeName(TypeConverterAttribute attr) 124if (converterType != null && typeof(TypeConverter).IsAssignableFrom(converterType)) 126return (TypeConverter?)CreateInstance(converterType)!;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (14)
97/// Provides a way to create <see cref="TypeConverter"/> instances, and cache them where applicable. 101private readonly Func<Type, TypeConverter> _constructionFunc; 105private TypeConverter? _converterInstance; 111/// A func that creates a new <see cref="TypeConverter"/> instance. 114/// Indicates whether to cache created <see cref="TypeConverter"/> instances. This is false when the converter handles multiple types, 117public IntrinsicTypeConverterData(Func<Type, TypeConverter> constructionFunc, bool cacheConverterInstance = true) 123public TypeConverter GetOrCreateConverterInstance(Type innerType) 371internal TypeConverter GetConverter([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, object? instance) 377internal TypeConverter GetConverterFromRegisteredType(Type type, object? instance) 508internal TypeConverter GetExtendedConverter(object instance) 1556private static TypeConverter GetIntrinsicTypeConverter(Type callingType) 1558TypeConverter converter; 1624TypeConverter converter = GetIntrinsicTypeConverter(callingType); 1627return (converter.GetType() != typeof(TypeConverter));
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (6)
24private TypeConverter? _converter; 184internal TypeConverter GetConverter(object? instance, bool verifyIsRegisteredType) 200if (converterType != null && typeof(TypeConverter).IsAssignableFrom(converterType)) 207return (TypeConverter)ReflectTypeDescriptionProvider.CreateInstance(converterType, _type)!; 220if (converterType != null && typeof(TypeConverter).IsAssignableFrom(converterType)) 222_converter = (TypeConverter)CreateInstance(converterType, _type)!;
System\ComponentModel\TypeConverter.cs (7)
210/// <see cref='System.ComponentModel.TypeConverter.CreateInstance(IDictionary)'/> to create a new value. 217/// <see cref='System.ComponentModel.TypeConverter.CreateInstance(IDictionary)'/> to create a new value, 276/// <see cref='System.ComponentModel.TypeConverter.GetStandardValues()'/> is an exclusive list. 282/// <see cref='System.ComponentModel.TypeConverter.GetStandardValues()'/> is an exclusive 347/// Initializes a new instance of the <see cref='System.ComponentModel.TypeConverter.SimplePropertyDescriptor'/> class. 354/// Initializes a new instance of the <see cref='System.ComponentModel.TypeConverter.SimplePropertyDescriptor'/> class. 424/// Initializes a new instance of the <see cref='System.ComponentModel.TypeConverter.StandardValuesCollection'/> class.
System\ComponentModel\TypeDescriptor.cs (27)
833[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage + " The Type of component cannot be statically discovered.")] 834public static TypeConverter GetConverter(object component) => GetConverter(component, false); 840[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage + " The Type of component cannot be statically discovered.")] 841public static TypeConverter GetConverter(object component, bool noCustomTypeDesc) 843TypeConverter? converter = GetDescriptor(component, noCustomTypeDesc)!.GetConverter(); 853public static TypeConverter GetConverterFromRegisteredType(object component) 855TypeConverter? converter = GetDescriptorFromRegisteredType(component)!.GetConverterFromRegisteredType(); 863[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage)] 864public static TypeConverter GetConverter([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) 871internal static TypeConverter GetConverterTrimUnsafe([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) => 877public static TypeConverter GetConverterFromRegisteredType(Type type) 883[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage)] 2821[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage)] 2822TypeConverter ICustomTypeDescriptor.GetConverter() => _handler.GetConverter(_instance); 3120[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage)] 3121TypeConverter ICustomTypeDescriptor.GetConverter() 3123TypeConverter? converter = _primary.GetConverter() ?? _secondary.GetConverter(); 3498[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage)] 3499TypeConverter ICustomTypeDescriptor.GetConverter() 3513TypeConverter? converter = desc.GetConverter(); 3521TypeConverter ICustomTypeDescriptor.GetConverterFromRegisteredType() 3535TypeConverter? converter = desc.GetConverterFromRegisteredType(); 3871[RequiresUnreferencedCode(TypeConverter.RequiresUnreferencedCodeMessage)] 3872public TypeConverter GetConverter() 3878TypeConverter? converter; 3899public TypeConverter GetConverterFromRegisteredType() 3905TypeConverter? converter;
System\Drawing\ColorConverter.cs (1)
75TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\PointConverter.cs (2)
41TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 72TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\RectangleConverter.cs (2)
41TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 70TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\SizeConverter.cs (2)
41TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int)); 70TypeConverter intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\SizeFConverter.cs (2)
41TypeConverter floatConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(float)); 69TypeConverter floatConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(float));
System.Configuration.ConfigurationManager (12)
System\Configuration\ApplicationSettingsBase.cs (1)
518TypeConverter tc = TypeDescriptor.GetConverter(propertyInfo.PropertyType);
System\Configuration\ConfigurationProperty.cs (7)
15private TypeConverter _converter; 49TypeConverter typeConverter, 58TypeConverter typeConverter, 79TypeConverter typeConverter = null; 87typeConverter = TypeUtil.CreateInstance<TypeConverter>(((TypeConverterAttribute)attribute).ConverterTypeName); 200public TypeConverter Converter 222TypeConverter converter,
System\Configuration\InfiniteTimeSpanConverter.cs (1)
11private static readonly TypeConverter s_timeSpanConverter = TypeDescriptor.GetConverter(typeof(TimeSpan));
System\Configuration\PropertyInformation.cs (1)
90public TypeConverter Converter => Prop.Converter;
System\Configuration\SettingsPropertyValue.cs (2)
208TypeConverter converter = TypeDescriptor.GetConverter(type); 261TypeConverter converter = TypeDescriptor.GetConverter(type);
System.Data.Common (8)
System\Data\Common\DataRecordInternal.cs (1)
321TypeConverter? ICustomTypeDescriptor.GetConverter()
System\Data\Common\DbConnectionStringBuilder.cs (1)
617TypeConverter ICustomTypeDescriptor.GetConverter()
System\Data\Common\DbDataRecord.cs (1)
80TypeConverter? ICustomTypeDescriptor.GetConverter() => null;
System\Data\DataRowView.cs (1)
237TypeConverter? ICustomTypeDescriptor.GetConverter() => null;
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
52TypeConverter? ICustomTypeDescriptor.GetConverter() => null;
System\Data\XMLSchema.cs (3)
19internal static TypeConverter GetConverter(Type type) 48TypeConverter converter = XMLSchema.GetConverter(type); 295TypeConverter converter = XMLSchema.GetConverter(type);
System.Drawing.Common (3)
Special\NotSupported.cs (3)
383public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 392public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 838public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(System.ComponentModel.ITypeDescriptorContext? context) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Private.Windows.Core (3)
System\Private\Windows\Core\Nrbf\SerializationRecordExtensions.cs (3)
566/// Try to get a supported .NET type object (not WinForms) that has no <see cref="TypeConverter"/>. 581/// Try to get a supported System.Drawing.Primitives object that has a <see cref="TypeConverter"/>. 582/// This method is used for Clipboard payload deserialization. ResX deserialization uses <see cref="TypeConverter"/>s for these types.
System.Private.Windows.Core.TestUtilities (6)
CustomConverter.cs (6)
13public static RegistrationScope RegisterConverter(Type type, TypeConverter converter) 45private readonly TypeConverter _converter; 47public CustomTypeDescriptionProvider(TypeDescriptionProvider parent, TypeConverter converter) : base(parent) 56private readonly TypeConverter _converter; 58public TypeConverterProvider(ICustomTypeDescriptor? parent, TypeConverter converter) : base(parent) 61public override TypeConverter GetConverter() => _converter;
System.Resources.Extensions (3)
System\Resources\Extensions\DeserializingResourceReader.cs (2)
170TypeConverter converter = TypeDescriptor.GetConverter(type); 184TypeConverter converter = TypeDescriptor.GetConverter(type);
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
100TypeConverter converter = TypeDescriptor.GetConverter(primitiveType);
System.Windows.Forms (112)
System\Resources\ResXDataNode.cs (2)
246TypeConverter converter = TypeDescriptor.GetConverter(valueType); 362TypeConverter converter = TypeDescriptor.GetConverter(type);
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
20private TypeConverter? _converter; 75public override TypeConverter Converter
System\Windows\Forms\ActiveX\AxHost.cs (1)
2465TypeConverter? ICustomTypeDescriptor.GetConverter()
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
20[TypeConverter(typeof(TypeConverter))]
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
976TypeConverter converter = property.Converter; 1165TypeConverter converter = currentProperty.Converter; 1549TypeConverter converter = currentProperty.Converter;
System\Windows\Forms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (2)
13private TypeConverter? _converter; 33public override TypeConverter Converter
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (5)
15private readonly TypeConverter? _innerConverter; 17public Com2ExtendedTypeConverter(TypeConverter? innerConverter) 27public TypeConverter? InnerConverter => _innerConverter; 29public TypeConverter? GetWrappedConverter(Type t) 31TypeConverter? converter = _innerConverter;
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
15public Com2IDispatchConverter(bool allowExpand, TypeConverter? baseConverter)
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (1)
27TypeConverter baseConverter) : base(baseConverter)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (12)
23/// of <see cref="TypeConverter"/>s. 37private TypeConverter? _converter; 283public override TypeConverter Converter 478private TypeConverter GetBaseTypeConverter() 485TypeConverter? localConverter = null; 492&& typeof(TypeConverter).IsAssignableFrom(converterType)) 496localConverter = (TypeConverter?)Activator.CreateInstance(converterType); 578TypeConverter? converter = null; 677/// <see cref="TypeConverter"/> for a description of how system value editors are found. If there is no 682public void GetTypeConverterAndTypeEditor([NotNull] ref TypeConverter? typeConverter, Type editorBaseType, ref object? typeEditor) 685TypeConverter? localConverter = typeConverter; 726if (localConverterType != typeof(TypeConverter) && localConverterType != typeof(Com2PropDescMainConverter))
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (1)
38TypeConverter ICustomTypeDescriptor.GetConverter() => GetIComponentConverter();
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (5)
21/// The instance of this type is found via reflection in <see cref="TypeConverter"/> and exposed as 100internal static TypeConverter GetIComponentConverter() => TypeDescriptor.GetConverter(typeof(IComponent)); 334ref TypeConverter currentConverter, 341TypeConverter subConverter = TypeDescriptor.GetConverter(type); 342if (subConverter is not null && subConverter.GetType() != typeof(TypeConverter))
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (1)
22TypeConverter? ICustomTypeDescriptor.GetConverter() => GetIComponentConverter();
System\Windows\Forms\ComponentModel\COM2Interop\GetTypeConverterAndTypeEditorEvent.cs (2)
12public GetTypeConverterAndTypeEditorEvent(TypeConverter? typeConverter, object? typeEditor) 18public TypeConverter? TypeConverter { get; set; }
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
355private readonly Dictionary<Type, TypeConverter> _converters;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (5)
272public TypeConverter BoundColumnConverter(int boundColumnIndex) 912TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 943TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 1474TypeConverter boundColumnConverter = BoundColumnConverter(boundColumnIndex); 1481TypeConverter valueConverter = _owner.GetCachedTypeConverter(valueType);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
6808internal TypeConverter GetCachedTypeConverter(Type type) 6810if (_converters.TryGetValue(type, out TypeConverter? converter))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (10)
237private TypeConverter? FormattedValueTypeConverter 241TypeConverter? formattedValueTypeConverter = null; 718private TypeConverter? ValueTypeConverter 722TypeConverter? valueTypeConverter = null; 1590TypeConverter? valueTypeConverter, 1591TypeConverter? formattedValueTypeConverter, 3695TypeConverter? formattedValueTypeConverter, 3696TypeConverter? valueTypeConverter) 3710TypeConverter? formattedValueTypeConverter, 3711TypeConverter? valueTypeConverter)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
203TypeConverter? converter = _owner.FormattedValueTypeConverter;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
556TypeConverter? valueTypeConverter, 557TypeConverter? formattedValueTypeConverter, 1563TypeConverter? formattedValueTypeConverter, 1564TypeConverter? valueTypeConverter)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
150internal TypeConverter? BoundColumnConverter { get; set; }
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (5)
311private TypeConverter DisplayTypeConverter => DataGridView is not null 900TypeConverter? valueTypeConverter, 901TypeConverter? formattedValueTypeConverter, 2379TypeConverter? formattedValueTypeConverter, 2380TypeConverter? valueTypeConverter)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
354TypeConverter? valueTypeConverter, 355TypeConverter? formattedValueTypeConverter,
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
95TypeConverter intConverter = TypeDescriptor.GetConverter(typeof(int));
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
91TypeConverter intConverter = TypeDescriptor.GetConverter(typeof(int));
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
31private TypeConverter? _displayMemberConverter; 32private static TypeConverter? s_stringTypeConverter; 137private TypeConverter? DisplayMemberConverter
System\Windows\Forms\Controls\ListView\ListViewItemStateImageIndexConverter.cs (1)
15/// is valid in the <see cref="TypeConverter.StandardValuesCollection" /> collection.
System\Windows\Forms\Controls\PropertyGrid\GridItem.cs (1)
57/// This can be used to retrieve information such as property type, name, or <see cref="TypeConverter"/>.
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (4)
38protected TypeConverter? _typeConverter; 364TypeConverter converter = TypeConverter; 766internal virtual TypeConverter TypeConverter 1446TypeConverter converter = TypeConverter;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.Flags.cs (1)
50/// <see cref="TypeConverter.GetCreateInstanceSupported()"/> indicates that it is immutable.
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (3)
15/// An immutable object is identified through it's <see cref="TypeConverter"/> when it returns true for 16/// <see cref="TypeConverter.GetCreateInstanceSupported()"/>. In this case, we never go through the 47TypeConverter parentConverter = parentEntry.TypeConverter;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (2)
30public override TypeConverter Converter 138TypeConverter converter = TypeDescriptor.GetConverter(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (1)
52TypeConverter typeConverter = context.PropertyDescriptor is null
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
13private TypeConverter? _exceptionConverter; 268internal override TypeConverter TypeConverter
System\Windows\Forms\DataBinding\Binding.cs (5)
31private TypeConverter? _propInfoConverter; 692TypeConverter? fieldInfoConverter = null; 721TypeConverter typeConverter = TypeDescriptor.GetConverter(value is not null ? value.GetType() : typeof(object)); 766TypeConverter? fieldInfoConverter = null; 795TypeConverter typeConverter = TypeDescriptor.GetConverter(value is not null ? value.GetType() : typeof(object));
System\Windows\Forms\ImageIndexConverter.cs (1)
26/// the <see cref="TypeConverter.StandardValuesCollection" /> collection.
System\Windows\Forms\Internal\Formatter.cs (14)
32TypeConverter? sourceConverter, 33TypeConverter? targetConverter, 89TypeConverter? sourceConverter, 90TypeConverter? targetConverter, 139TypeConverter sourceTypeTypeConverter; 155TypeConverter targetTypeTypeConverter; 241TypeConverter? targetConverter, 242TypeConverter? sourceConverter, 279TypeConverter? targetConverter, 280TypeConverter? sourceConverter, 297TypeConverter targetTypeTypeConverter = TypeDescriptor.GetConverter(targetType); 303TypeConverter sourceTypeTypeConverter = TypeDescriptor.GetConverter(sourceType); 544private static TypeConverter? NullableUnwrap(TypeConverter? typeConverter)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (2)
46TypeConverter converter = TypeDescriptor.GetConverter(this); 469TypeConverter converter;
System.Windows.Forms.Design (26)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1248TypeConverter? ICustomTypeDescriptor.GetConverter() => null;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
61TypeConverter.StandardValuesCollection? standardValues = GetStandardValues();
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (4)
175protected TypeConverter.StandardValuesCollection? GetStandardValues() 177TypeConverter converter = PropertyDescriptor.Converter; 193TypeConverter.StandardValuesCollection? standardValues = GetStandardValues(); 223TypeConverter.StandardValuesCollection? standardValues = GetStandardValues();
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (2)
22private TypeConverter? _converter; 51public override TypeConverter Converter
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (4)
54private static TypeConverter GetConverter(ITypeDescriptorContext? context) 56TypeConverter? modifierConverter = context?.GetService<CodeDomProvider>()?.GetConverter(typeof(MemberAttributes)); 62/// call to <see cref="TypeConverter.CreateInstance(IDictionary)"/> to create a new value, 127/// <see cref="TypeConverter.GetStandardValues()"/> is an exclusive
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (2)
35SupportedCultures = new TypeConverter.StandardValuesCollection(supportedCultures); 43internal TypeConverter.StandardValuesCollection? SupportedCultures { get; }
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1882TypeConverter converter = TypeDescriptor.GetConverter(value);
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (2)
35TypeConverter? converter = TypeDescriptor.GetConverter(enumValue); 60TypeConverter enumConverter = new EnumConverter(enumValue.GetType());
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
18private readonly TypeConverter _cursorConverter;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
731TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 816TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1249TypeConverter ICustomTypeDescriptor.GetConverter() => TypeDescriptor.GetConverter(DataGridViewColumn);
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
434TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 495TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 626TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (2)
38private TypeConverter? _keysConverter; 62private TypeConverter KeysConverter => _keysConverter ??= TypeDescriptor.GetConverter(typeof(Keys));
System.Windows.Forms.Design.Tests (6)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (6)
326var converter = TypeDescriptor.GetConverter(bitmap); 406var converter = TypeDescriptor.GetConverter(icon); 605TypeConverter converter = TypeDescriptor.GetConverter(typeof(AxHost.State)); 606Assert.Equal(typeof(TypeConverter), converter.GetType()); 673private static void ValidateResultBitmap(PropertyInfo imagePropertyInfo, Bitmap expected, TypeConverter converter) 681private static void ValidateResultIcon(PropertyInfo iconPropertyInfo, Icon expected, TypeConverter converter)
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeConverterHelper.cs (1)
40TypeConverter converter;
System.Windows.Forms.Primitives.TestUtilities (1)
System\Windows\Forms\BinaryFormat\BinaryFormatTestExtensions.cs (1)
53TypeConverter converter;
System.Windows.Forms.Tests (88)
System\Resources\ResxDataNodeTests.cs (2)
30var converter = TypeDescriptor.GetConverter(bitmap); 44var converter = TypeDescriptor.GetConverter(bitmap);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
120public TypeConverter? GetConverter() => throw new NotImplementedException();
System\Windows\Forms\DataGridViewCellTests.cs (14)
4146public void DataGridViewCell_GetFormattedValue_Invoke_ReturnsExpected(object value, int rowIndex, DataGridViewCellStyle cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context, object expected) 4154public void DataGridViewCell_GetFormattedValue_InvokeWithRow_ReturnsExpected(object value, int rowIndex, DataGridViewCellStyle cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context, object expected) 4164public void DataGridViewCell_GetFormattedValue_InvokeWithColumn_ReturnsExpected(object value, int rowIndex, DataGridViewCellStyle cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context, object expected) 6145public void DataGridViewCell_ParseFormattedValue_Invoke_ReturnsExpected(Type valueType, Type formattedValueType, object formattedValue, DataGridViewCellStyle cellStyle, TypeConverter formattedValueTypeConverter, TypeConverter valueTypeConverter, object expected) 6195public void DataGridViewCell_ParseFormattedValue_CantConvert_ThrowsFormatException(Type valueType, Type formattedValueType, object formattedValue, DataGridViewCellStyle cellStyle, TypeConverter formattedValueTypeConverter, TypeConverter valueTypeConverter) 6532public new object GetFormattedValue(object value, int rowIndex, ref DataGridViewCellStyle cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context) 6580public new object GetFormattedValue(object value, int rowIndex, ref DataGridViewCellStyle cellStyle, TypeConverter valueTypeConverter, TypeConverter formattedValueTypeConverter, DataGridViewDataErrorContexts context)
System\Windows\Forms\DataGridViewRowConverterTests.cs (2)
16TypeConverter converter = TypeDescriptor.GetConverter(row); 26TypeConverter converter = TypeDescriptor.GetConverter(row);
System\Windows\Forms\ListBindingHelperTests.cs (1)
807public TypeConverter GetConverter()
System\Windows\Forms\ListViewGroupConverterTests.cs (19)
22TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 49TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 62TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 77TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 107TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 123TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 135TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 162TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 202TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 213TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 220TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 227TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 236TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 243TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 250TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 278TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 289TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 296TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 303TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
System\Windows\Forms\ListViewItemStateImageIndexConverterTests.cs (1)
4using static System.ComponentModel.TypeConverter;
System\Windows\Forms\ListViewSubItemConverterTests.cs (13)
22TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 32TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 44TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 70TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 81TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 88TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 95TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 104TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 111TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 118TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 126TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 133TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 140TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
System\Windows\Forms\PropertyGridTests.cs (2)
3957TypeConverter typeConverter = gridEntry.TypeConverter; 3958Assert.IsType<TypeConverter>(typeConverter);
System\Windows\Forms\SpecialFolderEnumConverterTests.cs (6)
16TypeConverter converter = descriptor.Converter; 23TypeConverter converter = GetNewSpecialFolderEnumConverter(); 90TypeConverter converter = (TypeConverter)Activator.CreateInstance(descriptor.Converter.GetType(), new Type[] { typeof(CustomEnum) }); 94private TypeConverter GetNewSpecialFolderEnumConverter() 97return (TypeConverter)Activator.CreateInstance(descriptor.Converter.GetType(), new Type[] { typeof(Environment.SpecialFolder) });
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (19)
106TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 122TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 132TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 141TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 148TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 155TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 167TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 174TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 184TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 191TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 200TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 207TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 219TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 278TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 285TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 296TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 307TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 314TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 324TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
System\Windows\Forms\TableLayoutStyleTests.cs (6)
120TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 138TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 148TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 155TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 162TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 171TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));
System\Windows\Forms\TextBoxAutoCompleteSourceConverterTests.cs (1)
6using static System.ComponentModel.TypeConverter;
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (1)
4using static System.ComponentModel.TypeConverter;
System.Xaml (127)
ms\Internal\Markup\TypeConverterValueSerializer.cs (2)
18private TypeConverter converter; 20public TypeConverterValueSerializer(TypeConverter converter)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (7)
239private static TypeConverter? GetCoreConverterFromCoreType(Type type) 241TypeConverter? typeConverter = null; 333internal static TypeConverter? GetCoreConverterFromCustomType(Type type) 335TypeConverter? typeConverter = null; 442internal static TypeConverter GetTypeConverter(Type type) 446TypeConverter? typeConverter = GetCoreConverterFromCoreType(type); 457InvariantEnglishUS) as TypeConverter;
System\Windows\Markup\ValueSerializer.cs (2)
134TypeConverter converter = TypeConverterHelper.GetTypeConverter(type); 177TypeConverter converter = descriptor.Converter;
System\Windows\Markup\XamlSetTypeConverterEventArgs.cs (3)
15public XamlSetTypeConverterEventArgs(XamlMember member, TypeConverter typeConverter, object value, 24internal XamlSetTypeConverterEventArgs(XamlMember member, TypeConverter typeConverter, object value, 31public TypeConverter TypeConverter { get; private set; }
System\Xaml\InfosetObjects\XamlObjectWriter.cs (5)
1240XamlValueConverter<TypeConverter> ts = xamlType.TypeConverter; 1271private object Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter<TypeConverter> typeConverter, 1277private object Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter<TypeConverter> typeConverter, 1317XamlValueConverter<TypeConverter> converter = property.TypeConverter; 1342TypeConverter typeConverter = Runtime.GetConverterInstance(converter);
System\Xaml\Runtime\ClrObjectRuntime.cs (6)
141XamlValueConverter<TypeConverter> ts, object value, 169public override bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter) 185public override bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type) 217public override T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance) 625XamlValueConverter<TypeConverter> ts, object value) 627TypeConverter typeConverter = GetConverterInstance(ts);
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
156XamlValueConverter<TypeConverter> ts, object value,
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (4)
77public override object CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter<TypeConverter> ts, object value, XamlMember property) 115public override bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter) 120public override bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type) 130public override T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance)
System\Xaml\Schema\BuiltInValueConverter.cs (56)
33private static XamlValueConverter<TypeConverter> s_String; 34private static XamlValueConverter<TypeConverter> s_Object; 35private static XamlValueConverter<TypeConverter> s_Int32; 36private static XamlValueConverter<TypeConverter> s_Int16; 37private static XamlValueConverter<TypeConverter> s_Int64; 38private static XamlValueConverter<TypeConverter> s_UInt32; 39private static XamlValueConverter<TypeConverter> s_UInt16; 40private static XamlValueConverter<TypeConverter> s_UInt64; 41private static XamlValueConverter<TypeConverter> s_Boolean; 42private static XamlValueConverter<TypeConverter> s_Double; 43private static XamlValueConverter<TypeConverter> s_Single; 44private static XamlValueConverter<TypeConverter> s_Byte; 45private static XamlValueConverter<TypeConverter> s_SByte; 46private static XamlValueConverter<TypeConverter> s_Char; 47private static XamlValueConverter<TypeConverter> s_Decimal; 48private static XamlValueConverter<TypeConverter> s_TimeSpan; 49private static XamlValueConverter<TypeConverter> s_Guid; 50private static XamlValueConverter<TypeConverter> s_Type; 51private static XamlValueConverter<TypeConverter> s_TypeList; 52private static XamlValueConverter<TypeConverter> s_DateTime; 53private static XamlValueConverter<TypeConverter> s_DateTimeOffset; 54private static XamlValueConverter<TypeConverter> s_CultureInfo; 56private static XamlValueConverter<TypeConverter> s_Delegate; 57private static XamlValueConverter<TypeConverter> s_Uri; 59internal static XamlValueConverter<TypeConverter> Int32 60=> s_Int32 ??= new BuiltInValueConverter<TypeConverter>(typeof(Int32Converter), () => new Int32Converter()); 62internal static XamlValueConverter<TypeConverter> String 63=> s_String ??= new BuiltInValueConverter<TypeConverter>(typeof(StringConverter), () => new StringConverter()); 65internal static XamlValueConverter<TypeConverter> Object 66=> s_Object ??= new XamlValueConverter<TypeConverter>(null, XamlLanguage.Object); 68internal static XamlValueConverter<TypeConverter> Event 69=> s_Delegate ??= new BuiltInValueConverter<TypeConverter>(typeof(EventConverter), () => new EventConverter()); 71internal static XamlValueConverter<TypeConverter> GetTypeConverter(Type targetType) 87return s_Int16 ??= new BuiltInValueConverter<TypeConverter>(typeof(Int16Converter), () => new Int16Converter()); 91return s_Int64 ??= new BuiltInValueConverter<TypeConverter>(typeof(Int64Converter), () => new Int64Converter()); 95return s_UInt32 ??= new BuiltInValueConverter<TypeConverter>(typeof(UInt32Converter), () => new UInt32Converter()); 99return s_UInt16 ??= new BuiltInValueConverter<TypeConverter>(typeof(UInt16Converter), () => new UInt16Converter()); 103return s_UInt64 ??= new BuiltInValueConverter<TypeConverter>(typeof(UInt64Converter), () => new UInt64Converter()); 107return s_Boolean ??= new BuiltInValueConverter<TypeConverter>(typeof(BooleanConverter), () => new BooleanConverter()); 111return s_Double ??= new BuiltInValueConverter<TypeConverter>(typeof(DoubleConverter), () => new DoubleConverter()); 115return s_Single ??= new BuiltInValueConverter<TypeConverter>(typeof(SingleConverter), () => new SingleConverter()); 119return s_Byte ??= new BuiltInValueConverter<TypeConverter>(typeof(ByteConverter), () => new ByteConverter()); 123return s_SByte ??= new BuiltInValueConverter<TypeConverter>(typeof(SByteConverter), () => new SByteConverter()); 127return s_Char ??= new BuiltInValueConverter<TypeConverter>(typeof(CharConverter), () => new CharConverter()); 131return s_Decimal ??= new BuiltInValueConverter<TypeConverter>(typeof(DecimalConverter), () => new DecimalConverter()); 135return s_TimeSpan ??= new BuiltInValueConverter<TypeConverter>(typeof(TimeSpanConverter), () => new TimeSpanConverter()); 139return s_Guid ??= new BuiltInValueConverter<TypeConverter>(typeof(GuidConverter), () => new GuidConverter()); 143return s_Type ??= new BuiltInValueConverter<TypeConverter>(typeof(System.Xaml.Replacements.TypeTypeConverter), () => new System.Xaml.Replacements.TypeTypeConverter()); 147return s_TypeList ??= new BuiltInValueConverter<TypeConverter>(typeof(System.Xaml.Replacements.TypeListConverter), () => new System.Xaml.Replacements.TypeListConverter()); 151return s_DateTime ??= new BuiltInValueConverter<TypeConverter>(typeof(System.Xaml.Replacements.DateTimeConverter2), () => new System.Xaml.Replacements.DateTimeConverter2()); 155return s_DateTimeOffset ??= new BuiltInValueConverter<TypeConverter>(typeof(System.Xaml.Replacements.DateTimeOffsetConverter2), () => new System.Xaml.Replacements.DateTimeOffsetConverter2()); 159return s_CultureInfo ??= new BuiltInValueConverter<TypeConverter>(typeof(CultureInfoConverter), () => new CultureInfoConverter()); 163return s_Delegate ??= new BuiltInValueConverter<TypeConverter>(typeof(EventConverter), () => new EventConverter()); 169TypeConverter stdConverter = null; 188s_Uri = new BuiltInValueConverter<TypeConverter>(typeof(TypeUriConverter), () => new TypeUriConverter()); 196s_Uri = new BuiltInValueConverter<TypeConverter>(stdConverter.GetType(), () => TypeDescriptor.GetConverter(typeof(Uri)));
System\Xaml\Schema\MemberReflector.cs (3)
30private NullableReference<XamlValueConverter<TypeConverter>> _typeConverter; 62internal MemberReflector(XamlType type, XamlValueConverter<TypeConverter> typeConverter) 189internal XamlValueConverter<TypeConverter> TypeConverter
System\Xaml\Schema\TypeReflector.cs (2)
59private NullableReference<XamlValueConverter<TypeConverter>> _typeConverter; 252internal XamlValueConverter<TypeConverter> TypeConverter
System\Xaml\Schema\XamlDirective.cs (2)
34XamlValueConverter<TypeConverter> typeConverter, AllowedMemberLocations allowedLocation) 177protected sealed override XamlValueConverter<TypeConverter> LookupTypeConverter()
System\Xaml\XamlLanguage.cs (1)
446XamlValueConverter<TypeConverter> typeConverter, AllowedMemberLocations allowedLocation)
System\Xaml\XamlMember.cs (4)
252public XamlValueConverter<TypeConverter> TypeConverter 662protected virtual XamlValueConverter<TypeConverter> LookupTypeConverter() 664XamlValueConverter<TypeConverter> result = null; 670result = SchemaContext.GetValueConverter<TypeConverter>(converterType, null);
System\Xaml\XamlObjectReader.cs (19)
447TypeConverter tc = TypeConverterExtensions.GetConverterInstance(actualKeyType.TypeConverter); 453TypeConverter tc = TypeConverterExtensions.GetConverterInstance(keyType.TypeConverter); 851object propertyValue, ValueSerializer propertyValueSerializer, TypeConverter propertyConverter, bool isXamlTemplate, XamlMember xamlProperty, SerializerContext context) 1338TypeConverter converter = TypeConverterExtensions.GetConverterInstance(paramXamlType.TypeConverter); 1390bool TryGetInstanceDescriptorInfo(object value, SerializerContext context, TypeConverter converter, out MemberInfo member, out ICollection arguments, out bool isComplete) 1406void ConvertToInstanceDescriptor(SerializerContext context, object instance, TypeConverter converter, 1426protected void AddRecordMembers(object value, SerializerContext context, TypeConverter converter) 1510TypeConverter converter, out bool isComplete, out ParameterInfo[] methodParams) 1897public static ObjectMarkupInfo ForObject(object value, SerializerContext context, TypeConverter instanceConverter = null, bool isRoot = false) 1929TypeConverter converter = null; 2009static ObjectMarkupInfo ForObjectInternal(object value, SerializerContext context, TypeConverter converter) 2643public bool CanConvertTo(TypeConverter converter, Type type) 2648public bool CanRoundTripString(TypeConverter converter) 2658public bool CanRoundtripUsingValueSerializer(ValueSerializer valueSerializer, TypeConverter typeConverter, object value) 2672public T ConvertTo<T>(TypeConverter converter, object value) 2677public bool TryValueSerializeToString(ValueSerializer valueSerializer, TypeConverter propertyConverter, SerializerContext context, ref object value) 2687TypeConverter actualTypeConverter = TypeConverterExtensions.GetConverterInstance(valueXamlType.TypeConverter); 2695public bool TryTypeConvertToString(TypeConverter converter, ref object value) 2709public bool TryConvertToMarkupExtension(TypeConverter converter, ref object value)
System\Xaml\XamlRuntime.cs (4)
29abstract public object CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter<TypeConverter> ts, 34abstract public bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter); 36abstract public bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type); 40abstract public T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance);
System\Xaml\XamlType.cs (6)
260public XamlValueConverter<TypeConverter> TypeConverter 1146protected virtual XamlValueConverter<TypeConverter> LookupTypeConverter() 1154return SchemaContext.GetValueConverter<TypeConverter>(converterType, null); 1160XamlValueConverter<TypeConverter> result = BaseType.TypeConverter; 1172return SchemaContext.GetValueConverter<TypeConverter>(typeof(EnumConverter), this); 1174XamlValueConverter<TypeConverter> result = BuiltInValueConverter.GetTypeConverter(underlyingType);
System.Xaml.Tests (11)
System\Windows\Markup\StaticExtensionTests.cs (5)
207TypeConverter converter = TypeDescriptor.GetConverter(extension); 215TypeConverter converter = TypeDescriptor.GetConverter(extension); 225TypeConverter converter = TypeDescriptor.GetConverter(extension); 234TypeConverter converter = TypeDescriptor.GetConverter(extension); 242TypeConverter converter = TypeDescriptor.GetConverter(extension);
System\Windows\Markup\TypeExtensionTests.cs (5)
168TypeConverter converter = TypeDescriptor.GetConverter(extension); 176TypeConverter converter = TypeDescriptor.GetConverter(extension); 186TypeConverter converter = TypeDescriptor.GetConverter(extension); 195TypeConverter converter = TypeDescriptor.GetConverter(extension); 203TypeConverter converter = TypeDescriptor.GetConverter(extension);
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
23public void Ctor_XamlMember_TypeConverter_Object_ITypeDescriptorContext_CultureInfo(XamlMember member, TypeConverter typeConverter, object value, ITypeDescriptorContext serviceProvider, CultureInfo cultureInfo)