161 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
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)
17internal class TypeTypeConverter : TypeConverter
PresentationCore (41)
MS\Internal\IListConverters.cs (1)
31public abstract class BaseIListConverter : TypeConverter
System\Windows\CultureInfoConverter.cs (1)
33public class CultureInfoIetfLanguageTagConverter : TypeConverter
System\Windows\DurationConverter.cs (1)
20public class DurationConverter : TypeConverter
System\Windows\FontStretchConverter.cs (1)
30public sealed class FontStretchConverter : TypeConverter
System\Windows\FontStyleConverter.cs (1)
30public sealed class FontStyleConverter : TypeConverter
System\Windows\FontWeightConverter.cs (1)
30public sealed class FontWeightConverter : TypeConverter
System\Windows\Ink\StrokeCollectionConverter.cs (1)
30public class StrokeCollectionConverter : TypeConverter
System\Windows\Input\Command\KeyGestureConverter.cs (1)
25public class KeyGestureConverter : TypeConverter
System\Windows\Input\Command\MouseActionConverter.cs (1)
22public class MouseActionConverter : TypeConverter
System\Windows\Input\Command\MouseGestureConverter.cs (1)
27public class MouseGestureConverter : TypeConverter
System\Windows\Input\CursorConverter.cs (1)
22public class CursorConverter : TypeConverter
System\Windows\Input\InputScopeConverter.cs (1)
27public class InputScopeConverter : TypeConverter
System\Windows\Input\InputScopeNameConverter.cs (1)
27public class InputScopeNameConverter : TypeConverter
System\Windows\Markup\XmlLanguageConverter.cs (1)
26public class XmlLanguageConverter: TypeConverter
System\Windows\Media\Animation\KeySplineConverter.cs (1)
27public class KeySplineConverter : TypeConverter
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
20public class KeyTimeConverter : TypeConverter
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
20public sealed class RepeatBehaviorConverter : TypeConverter
System\Windows\Media\ColorConverter.cs (1)
27public sealed class ColorConverter : TypeConverter
System\Windows\Media\FontFamilyConverter.cs (1)
34public class FontFamilyConverter : TypeConverter
System\Windows\Media\Generated\BrushConverter.cs (1)
46public sealed class BrushConverter : TypeConverter
System\Windows\Media\Generated\CacheModeConverter.cs (1)
46public sealed class CacheModeConverter : TypeConverter
System\Windows\Media\Generated\DoubleCollectionConverter.cs (1)
46public sealed class DoubleCollectionConverter : TypeConverter
System\Windows\Media\Generated\GeometryConverter.cs (1)
46public sealed class GeometryConverter : TypeConverter
System\Windows\Media\Generated\Int32CollectionConverter.cs (1)
46public sealed class Int32CollectionConverter : TypeConverter
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
46public sealed class PathFigureCollectionConverter : TypeConverter
System\Windows\Media\Generated\PointCollectionConverter.cs (1)
46public sealed class PointCollectionConverter : TypeConverter
System\Windows\Media\Generated\TransformConverter.cs (1)
46public sealed class TransformConverter : TypeConverter
System\Windows\Media\Generated\VectorCollectionConverter.cs (1)
46public sealed class VectorCollectionConverter : TypeConverter
System\Windows\Media\ImageSourceConverter.cs (1)
34public class ImageSourceConverter : TypeConverter
System\Windows\Media\PixelFormatConverter.cs (1)
33public sealed class PixelFormatConverter : TypeConverter
System\Windows\Media\RequestCachePolicyConverter.cs (1)
28public sealed class RequestCachePolicyConverter : TypeConverter
System\Windows\Media3D\Generated\Matrix3DConverter.cs (1)
42public sealed class Matrix3DConverter : TypeConverter
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (1)
42public sealed class Point3DCollectionConverter : TypeConverter
System\Windows\Media3D\Generated\Point3DConverter.cs (1)
42public sealed class Point3DConverter : TypeConverter
System\Windows\Media3D\Generated\Point4DConverter.cs (1)
42public sealed class Point4DConverter : TypeConverter
System\Windows\Media3D\Generated\QuaternionConverter.cs (1)
42public sealed class QuaternionConverter : TypeConverter
System\Windows\Media3D\Generated\Rect3DConverter.cs (1)
42public sealed class Rect3DConverter : TypeConverter
System\Windows\Media3D\Generated\Size3DConverter.cs (1)
42public sealed class Size3DConverter : TypeConverter
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (1)
42public sealed class Vector3DCollectionConverter : TypeConverter
System\Windows\Media3D\Generated\Vector3DConverter.cs (1)
42public sealed class Vector3DConverter : TypeConverter
System\Windows\TextDecorationCollectionConverter.cs (1)
28public sealed class TextDecorationCollectionConverter : TypeConverter
PresentationFramework (22)
System\Windows\Controls\DataGridLengthConverter.cs (1)
21public class DataGridLengthConverter : TypeConverter
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
28public class VirtualizationCacheLengthConverter : TypeConverter
System\Windows\CornerRadiusConverter.cs (1)
30public class CornerRadiusConverter : TypeConverter
System\Windows\DeferrableContentConverter.cs (1)
31public class DeferrableContentConverter : TypeConverter
System\Windows\DialogResultConverter.cs (1)
21public class DialogResultConverter: TypeConverter
System\Windows\DynamicResourceExtensionConverter.cs (1)
26public class DynamicResourceExtensionConverter: TypeConverter
System\Windows\EventSetterHandlerConverter.cs (1)
19public sealed class EventSetterHandlerConverter : TypeConverter
System\Windows\FigureLengthConverter.cs (1)
30public class FigureLengthConverter: TypeConverter
System\Windows\FontSizeConverter.cs (1)
34public class FontSizeConverter : TypeConverter
System\Windows\GridLengthConverter.cs (1)
32public class GridLengthConverter: TypeConverter
System\Windows\Input\Command\CommandConverter.cs (1)
29public sealed class CommandConverter : TypeConverter
System\Windows\LengthConverter.cs (1)
31public class LengthConverter: TypeConverter
System\Windows\Markup\DependencyPropertyConverter.cs (1)
31public sealed class DependencyPropertyConverter : TypeConverter
System\Windows\Markup\RoutedEventConverter.cs (1)
16public sealed class RoutedEventConverter : TypeConverter
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (1)
30public sealed class SetterTriggerConditionValueConverter : TypeConverter
System\Windows\Markup\TemplateKeyConverter.cs (1)
27public sealed class TemplateKeyConverter : TypeConverter
System\Windows\PropertyPathConverter.cs (1)
32public sealed class PropertyPathConverter: TypeConverter
System\Windows\SystemKeyConverter.cs (1)
26internal class SystemKeyConverter : TypeConverter
System\Windows\TemplateBindingExpressionConverter.cs (1)
26public class TemplateBindingExpressionConverter: TypeConverter
System\Windows\TemplateBindingExtensionConverter.cs (1)
26public class TemplateBindingExtensionConverter : TypeConverter
System\Windows\ThemeModeConverter.cs (1)
26public class ThemeModeConverter: TypeConverter
System\Windows\ThicknessConverter.cs (1)
31public 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)
23public class RibbonControlLengthConverter : TypeConverter
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (1)
20public 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)
15internal class StaticExtensionConverter : TypeConverter
System\Windows\Markup\TypeExtensionConverter.cs (1)
15internal class TypeExtensionConverter : TypeConverter
System\Xaml\EventConverter.cs (1)
11internal class EventConverter : TypeConverter
System\Xaml\Replacements\DateTimeConverter2.cs (1)
16internal class DateTimeConverter2 : TypeConverter
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
15internal class DateTimeOffsetConverter2 : TypeConverter
System\Xaml\Replacements\TypeListConverter.cs (1)
16internal 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)
475typeConverter ??= new TypeConverter();
663 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)
940TypeConverter converter = TypeDescriptor.GetConverter(type);
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)
1654TypeConverter converter = codeProvider.GetConverter(typeof(MemberAttributes)); 1722TypeConverter converter = codeProvider.GetConverter(typeof(TypeAttributes)); 1787TypeConverter converter = null;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2550TypeConverter boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
434TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
PresentationCore (16)
MS\Internal\FontFace\CompositeFontParser.cs (2)
968private TypeConverter _doubleTypeConverter; 969private TypeConverter _xmlLanguageTypeConverter;
System\Windows\Input\Command\KeyGesture.cs (1)
313private static TypeConverter _keyGestureConverter = new KeyGestureConverter();
System\Windows\Input\Command\KeyGestureValueSerializer.cs (2)
67TypeConverter converter = TypeDescriptor.GetConverter(typeof(KeyGesture)); 82TypeConverter converter = TypeDescriptor.GetConverter(typeof(KeyGesture));
System\Windows\Input\Command\MouseActionValueSerializer.cs (2)
57TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseAction)); 72TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseAction));
System\Windows\Input\Command\MouseGestureConverter.cs (4)
81TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction)); 92TypeConverter modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys)); 160TypeConverter modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys)); 169TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction));
System\Windows\Input\Command\MouseGestureValueSerializer.cs (2)
69TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseGesture)); 84TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseGesture));
System\Windows\Input\CursorConverter.cs (3)
60public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) 74_standardValues = new TypeConverter.StandardValuesCollection(values); 234private 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)
38protected DefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType, 65TypeConverter typeConverter; 180internal static TypeConverter GetConverter(Type type) 182TypeConverter typeConverter = null; 368private TypeConverter _typeConverter; 388public SourceDefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType, 424public TargetDefaultValueConverter(TypeConverter typeConverter, Type sourceType, Type targetType,
MS\Internal\Data\PropertyPathWorker.cs (1)
1408TypeConverter tc = TypeDescriptor.GetConverter(paramType);
System\Windows\Controls\ContentPresenter.cs (3)
1013TypeConverter tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content)); 1115TypeConverter tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content)); 1172TypeConverter tc = null;
System\Windows\Data\BindingExpressionBase.cs (1)
2197TypeConverter converter = DefaultValueConverter.GetConverter(dp.PropertyType);
System\Windows\Documents\DPTypeDescriptorContext.cs (2)
75System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType); 132System.ComponentModel.TypeConverter typeConverter = new CultureInfoIetfLanguageTagConverter();
System\Windows\Documents\TextRange.cs (1)
801System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(formattingProperty.PropertyType);
System\Windows\Documents\TextRangeSerialization.cs (1)
1132System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
863internal static TypeConverter CreateKnownTypeConverter(Int16 converterId) 865TypeConverter o = null;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (7)
38private Dictionary<int, TypeConverter> _typeConverterMap = new Dictionary<int, TypeConverter>(); 39private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 1523TypeConverter converter; 1585TypeConverter converter = null; 1621internal virtual object CreateTypeConverterMarkupExtension(XamlMember property, TypeConverter converter, object propertyValue, Baml2006ReaderSettings settings)
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
54internal override object CreateTypeConverterMarkupExtension(XamlMember property, TypeConverter converter, object propertyValue, Baml2006ReaderSettings settings)
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (2)
13private TypeConverter _converter; 16public TypeConverterMarkupExtension(TypeConverter converter, object value)
System\Windows\Markup\Baml2006\WpfKnownMember.cs (1)
151protected override XamlValueConverter<TypeConverter> LookupTypeConverter()
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
215protected override XamlValueConverter<TypeConverter> LookupTypeConverter()
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
257internal XamlValueConverter<TypeConverter> GetTypeConverter(Type converterType) 261return base.GetValueConverter<TypeConverter>(typeof(EnumConverter), GetXamlType(converterType)); 265return base.GetValueConverter<TypeConverter>(converterType, null);
System\Windows\Markup\BamlMapTable.cs (16)
234internal TypeConverter GetKnownConverterFromType(Type type) 238TypeConverter converter; 254internal static TypeConverter GetKnownConverterFromType_NoCache(Type type) 258TypeConverter tc; 278tc = KnownTypes.CreateKnownElement(typeId) as TypeConverter; 537internal TypeConverter GetConverterFromId ( 542TypeConverter tc = null; 577tc = CreateKnownTypeFromId(typeId) as TypeConverter; 592tc = Activator.CreateInstance(t) as TypeConverter; 596tc = XamlTypeMapper.CreateInternalInstance(pc, t) as TypeConverter; 1706private TypeConverter GetConverterFromCache(short typeId) 1708TypeConverter tc = null; 1711tc = _converterCache[typeId] as TypeConverter; 1717private TypeConverter GetConverterFromCache(Type type) 1719TypeConverter tc = null; 1722tc = _converterCache[type] as TypeConverter;
System\Windows\Markup\BamlReader.cs (1)
1082TypeConverter converter = TypeDescriptor.GetConverter(value.GetType());
System\Windows\Markup\BamlRecordReader.cs (1)
1612TypeConverter converter = XamlTypeMapper.GetTypeConverter(paramInfo.ParameterType);
System\Windows\Markup\BamlRecords.cs (1)
2550TypeConverter boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
System\Windows\Markup\ParserContext.cs (2)
102TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(XmlSpace)); 434TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
System\Windows\Markup\Primitives\ElementMarkupObject.cs (3)
367TypeConverter converter = TypeDescriptor.GetConverter(instance); 814TypeConverter converter = TypeDescriptor.GetConverter(value); 912TypeConverter converter = TypeDescriptor.GetConverter(value);
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (3)
121System.Xaml.Schema.XamlValueConverter<TypeConverter> typeConverter = null; 153TypeConverter converter = null; 180converter = (TypeConverter)typeConverter.ConverterInstance;
System\Windows\Markup\XamlTypeMapper.cs (12)
532TypeConverter typeConvert; 599else if (typeConvert.GetType() == typeof(TypeConverter)) 3472internal TypeConverter GetTypeConverter(Type type) 3477TypeConverter typeConverter = null; 3499typeConverter = CreateInstance(converterType) as TypeConverter; 3560internal TypeConverter GetPropertyConverter(Type propType, object dpOrPiOrMi) 3563TypeConverter typeConverter = null; 3574typeConverter = (TypeConverter)ret; 3587typeConverter = CreateInstance(converterType) as TypeConverter; 3957internal TypeConverter Converter 4054TypeConverter converter) 4070TypeConverter _typeConverter;
System\Windows\NullableBoolConverter.cs (3)
58public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) 60return _standardValues ??= new TypeConverter.StandardValuesCollection(new Nullable<bool>[] 70private static TypeConverter.StandardValuesCollection _standardValues;
System\Windows\PropertyPath.cs (1)
786TypeConverter tc = TypeDescriptor.GetConverter(type);
System\Windows\PropertyPathConverter.cs (1)
273TypeConverter converter = TypeDescriptor.GetConverter(type);
System\Windows\SourceUriTypeConverterMarkupExtension.cs (1)
23public SourceUriTypeConverterMarkupExtension(TypeConverter converter, object value, Assembly assemblyInfo) : base(converter, value)
System\Windows\StyleHelper.cs (1)
5914TypeConverter typeConverter = DefaultValueConverter.GetConverter(stateType);
System\Windows\TemplateContent.cs (1)
864TypeConverter converter = null;
ReachFramework (39)
Serialization\Manager\MetroSerializationManager.cs (5)
156TypeConverter 174TypeConverter 731TypeConverter typeConverter = _serializationManager.GetTypeConverter(serializableObject); 812TypeConverter typeConverterForProperty = null; 975TypeConverter typeConverter = _serializationManager.GetTypeConverter(serializableObjectType);
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
184TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
222TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
264TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
304TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedPageSerializer.cs (1)
337TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedPageSerializerAsync.cs (1)
309TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachSerializableProperties.cs (4)
476TypeConverter converter = this.TypeConverter; 592TypeConverter 597TypeConverter converter = null; 832TypeConverter converter = this.TypeConverter;
Serialization\Manager\ReachSerializationCacheItems.cs (10)
81TypeConverter typeConverter 117TypeConverter typeConverterForProperty = null; 182TypeConverter 198out TypeConverter typeConverterForProperty, 275TypeConverter typeConverter; 309TypeConverter typeConverterForProperty, 356TypeConverter 436TypeConverter typeConverterForProperty; 456TypeConverter typeConverterForProperty, 481out TypeConverter typeConverterForProperty,
Serialization\Manager\XpsOMFixedPageSerializer.cs (1)
295TypeConverter typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\XpsOMSerializationManager.cs (4)
214TypeConverter 219TypeConverter typeConverter = null; 246TypeConverter 251TypeConverter typeConverter = null;
Serialization\Manager\XpsSerializationManager.cs (4)
375TypeConverter 380TypeConverter typeConverter = null; 407TypeConverter 412TypeConverter typeConverter = null;
Serialization\VisualSerializer.cs (3)
331TypeConverter converter = _manager.GetTypeConverter(typeof(Color)); 617TypeConverter converter = _manager.GetTypeConverter(typeof(BitmapSource)); 2089TypeConverter converter = _manager.GetTypeConverter(typeof(GlyphRun));
Serialization\VisualTreeFlattener.cs (2)
240internal override TypeConverter GetTypeConverter(Object serializedObject) 245internal 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)
503/// Try to get a supported .NET type object (not WinForms) that has no <see cref="TypeConverter"/>. 518/// Try to get a supported System.Drawing.Primitives object that has a <see cref="TypeConverter"/>. 519/// 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)
247TypeConverter converter = TypeDescriptor.GetConverter(valueType); 363TypeConverter 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)
2464TypeConverter? ICustomTypeDescriptor.GetConverter()
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
20[TypeConverter(typeof(TypeConverter))]
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
984TypeConverter converter = property.Converter; 1173TypeConverter converter = currentProperty.Converter; 1557TypeConverter 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; 724if (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, 1562TypeConverter? formattedValueTypeConverter, 1563TypeConverter? 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, 2383TypeConverter? formattedValueTypeConverter, 2384TypeConverter? 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, 292TypeConverter? targetConverter, 293TypeConverter? sourceConverter, 310TypeConverter targetTypeTypeConverter = TypeDescriptor.GetConverter(targetType); 316TypeConverter sourceTypeTypeConverter = TypeDescriptor.GetConverter(sourceType); 557private 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)
733TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 823TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1251TypeConverter 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)
250private static TypeConverter? GetCoreConverterFromCoreType(Type type) 252TypeConverter? typeConverter = null; 344internal static TypeConverter? GetCoreConverterFromCustomType(Type type) 346TypeConverter? typeConverter = null; 453internal static TypeConverter GetTypeConverter(Type type) 457TypeConverter? typeConverter = GetCoreConverterFromCoreType(type); 468InvariantEnglishUS) as TypeConverter;
System\Windows\Markup\ValueSerializer.cs (2)
135TypeConverter converter = TypeConverterHelper.GetTypeConverter(type); 178TypeConverter 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)
1242XamlValueConverter<TypeConverter> ts = xamlType.TypeConverter; 1273private object Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter<TypeConverter> typeConverter, 1279private object Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter<TypeConverter> typeConverter, 1319XamlValueConverter<TypeConverter> converter = property.TypeConverter; 1344TypeConverter typeConverter = Runtime.GetConverterInstance(converter);
System\Xaml\Runtime\ClrObjectRuntime.cs (6)
143XamlValueConverter<TypeConverter> ts, object value, 171public override bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter) 187public override bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type) 219public override T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance) 627XamlValueConverter<TypeConverter> ts, object value) 629TypeConverter typeConverter = GetConverterInstance(ts);
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
160XamlValueConverter<TypeConverter> ts, object value,
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (4)
79public override object CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter<TypeConverter> ts, object value, XamlMember property) 117public override bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter) 122public override bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type) 132public override T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance)
System\Xaml\Schema\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)
32private NullableReference<XamlValueConverter<TypeConverter>> _typeConverter; 64internal MemberReflector(XamlType type, XamlValueConverter<TypeConverter> typeConverter) 191internal XamlValueConverter<TypeConverter> TypeConverter
System\Xaml\Schema\TypeReflector.cs (2)
61private NullableReference<XamlValueConverter<TypeConverter>> _typeConverter; 254internal XamlValueConverter<TypeConverter> TypeConverter
System\Xaml\Schema\XamlDirective.cs (2)
36XamlValueConverter<TypeConverter> typeConverter, AllowedMemberLocations allowedLocation) 179protected sealed override XamlValueConverter<TypeConverter> LookupTypeConverter()
System\Xaml\XamlLanguage.cs (1)
447XamlValueConverter<TypeConverter> typeConverter, AllowedMemberLocations allowedLocation)
System\Xaml\XamlMember.cs (4)
255public XamlValueConverter<TypeConverter> TypeConverter 665protected virtual XamlValueConverter<TypeConverter> LookupTypeConverter() 667XamlValueConverter<TypeConverter> result = null; 673result = SchemaContext.GetValueConverter<TypeConverter>(converterType, null);
System\Xaml\XamlObjectReader.cs (19)
452TypeConverter tc = TypeConverterExtensions.GetConverterInstance(actualKeyType.TypeConverter); 458TypeConverter tc = TypeConverterExtensions.GetConverterInstance(keyType.TypeConverter); 856object propertyValue, ValueSerializer propertyValueSerializer, TypeConverter propertyConverter, bool isXamlTemplate, XamlMember xamlProperty, SerializerContext context) 1343TypeConverter converter = TypeConverterExtensions.GetConverterInstance(paramXamlType.TypeConverter); 1395bool TryGetInstanceDescriptorInfo(object value, SerializerContext context, TypeConverter converter, out MemberInfo member, out ICollection arguments, out bool isComplete) 1411void ConvertToInstanceDescriptor(SerializerContext context, object instance, TypeConverter converter, 1431protected void AddRecordMembers(object value, SerializerContext context, TypeConverter converter) 1515TypeConverter converter, out bool isComplete, out ParameterInfo[] methodParams) 1902public static ObjectMarkupInfo ForObject(object value, SerializerContext context, TypeConverter instanceConverter = null, bool isRoot = false) 1934TypeConverter converter = null; 2014static ObjectMarkupInfo ForObjectInternal(object value, SerializerContext context, TypeConverter converter) 2648public bool CanConvertTo(TypeConverter converter, Type type) 2653public bool CanRoundTripString(TypeConverter converter) 2663public bool CanRoundtripUsingValueSerializer(ValueSerializer valueSerializer, TypeConverter typeConverter, object value) 2677public T ConvertTo<T>(TypeConverter converter, object value) 2682public bool TryValueSerializeToString(ValueSerializer valueSerializer, TypeConverter propertyConverter, SerializerContext context, ref object value) 2692TypeConverter actualTypeConverter = TypeConverterExtensions.GetConverterInstance(valueXamlType.TypeConverter); 2700public bool TryTypeConvertToString(TypeConverter converter, ref object value) 2714public bool TryConvertToMarkupExtension(TypeConverter converter, ref object value)
System\Xaml\XamlRuntime.cs (4)
31abstract public object CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter<TypeConverter> ts, 36abstract public bool CanConvertFrom<T>(ITypeDescriptorContext context, TypeConverter converter); 38abstract public bool CanConvertTo(ITypeDescriptorContext context, TypeConverter converter, Type type); 42abstract public T ConvertToValue<T>(ITypeDescriptorContext context, TypeConverter converter, object instance);
System\Xaml\XamlType.cs (6)
263public XamlValueConverter<TypeConverter> TypeConverter 1149protected virtual XamlValueConverter<TypeConverter> LookupTypeConverter() 1157return SchemaContext.GetValueConverter<TypeConverter>(converterType, null); 1163XamlValueConverter<TypeConverter> result = BaseType.TypeConverter; 1175return SchemaContext.GetValueConverter<TypeConverter>(typeof(EnumConverter), this); 1177XamlValueConverter<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)