224 types derived from TypeConverter
dotnet-svcutil-lib (1)
Microsoft.AspNetCore.Components.Tests (2)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.Maui (13)
Microsoft.Maui.Controls (40)
Microsoft.Maui.Controls.DesignTools (3)
Microsoft.Maui.Graphics (7)
PresentationBuildTasks (2)
PresentationCore (41)
PresentationFramework (22)
System.CodeDom (2)
System.ComponentModel.TypeConverter (27)
System.Configuration.ConfigurationManager (2)
System.Data.Common (1)
System.Drawing.Common (4)
System.Windows.Controls.Ribbon (2)
System.Windows.Forms (19)
System.Windows.Forms.Design (4)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Tests (7)
System.Xaml (10)
System.Xaml.Tests (6)
WinFormsControlsTest (1)
6 instantiations of TypeConverter
System.ComponentModel.TypeConverter (2)
System.Windows.Forms (3)
System.Xaml (1)
685 references to TypeConverter
BinaryFormatTests (2)
ConfigurationSchemaGenerator.Tests (1)
dotnet-svcutil-lib (2)
Microsoft.AspNetCore.Components (4)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.Extensions.Configuration.Binder (1)
Microsoft.Maui.Controls (18)
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) });
Microsoft.VisualBasic.Forms (3)
netstandard (1)
PresentationBuildTasks (5)
PresentationCore (16)
PresentationCore.Tests (3)
PresentationFramework (80)
ReachFramework (39)
System (1)
System.CodeDom (3)
System.ComponentModel.Annotations (2)
System.ComponentModel.TypeConverter (84)
System.Configuration.ConfigurationManager (12)
System.Data.Common (8)
System.Drawing.Common (3)
System.Private.Windows.Core (3)
System.Private.Windows.Core.TestUtilities (6)
System.Resources.Extensions (3)
System.Windows.Forms (112)
System.Windows.Forms.Design (26)
System.Windows.Forms.Design.Tests (6)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Tests (88)
System.Xaml (127)
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\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.Tests (11)