229 types derived from TypeConverter
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
4602
internal abstract class CSharpModifierAttributeConverter :
TypeConverter
Microsoft.AspNetCore.Components.Tests (2)
BindConverterTest.cs (1)
388
private class PersonConverter :
TypeConverter
EventCallbackFactoryBinderExtensionsTest.cs (1)
688
private class SecretMessageTypeConverter :
TypeConverter
Microsoft.AspNetCore.Http.Abstractions (1)
PathString.cs (1)
512
internal sealed class PathStringConverter :
TypeConverter
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2909
private class EmployeeConverter :
TypeConverter
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\InferParameterBindingInfoConventionTest.cs (1)
1129
private class ConvertibleFromStringConverter :
TypeConverter
ModelBinding\Binders\HeaderModelBinderProviderTest.cs (1)
213
private class CanConvertFromStringConverter :
TypeConverter
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
HeaderModelBinderIntegrationTest.cs (1)
496
private class CanConvertFromStringConverter :
TypeConverter
SimpleTypeModelBinderIntegrationTest.cs (1)
832
private 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)
571
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)
2368
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)
20
internal class DateTimeConverter2 :
TypeConverter
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\Markup\TypeTypeConverter.cs (1)
16
internal class TypeTypeConverter :
TypeConverter
PresentationCore (41)
MS\Internal\IListConverters.cs (1)
24
public abstract class BaseIListConverter :
TypeConverter
System\Windows\CultureInfoConverter.cs (1)
30
public class CultureInfoIetfLanguageTagConverter :
TypeConverter
System\Windows\DurationConverter.cs (1)
14
public class DurationConverter :
TypeConverter
System\Windows\FontStretchConverter.cs (1)
15
public sealed class FontStretchConverter :
TypeConverter
System\Windows\FontStyleConverter.cs (1)
15
public sealed class FontStyleConverter :
TypeConverter
System\Windows\FontWeightConverter.cs (1)
15
public sealed class FontWeightConverter :
TypeConverter
System\Windows\Ink\StrokeCollectionConverter.cs (1)
19
public class StrokeCollectionConverter :
TypeConverter
System\Windows\Input\Command\KeyGestureConverter.cs (1)
19
public class KeyGestureConverter :
TypeConverter
System\Windows\Input\Command\MouseActionConverter.cs (1)
13
public class MouseActionConverter :
TypeConverter
System\Windows\Input\Command\MouseGestureConverter.cs (1)
21
public class MouseGestureConverter :
TypeConverter
System\Windows\Input\CursorConverter.cs (1)
18
public class CursorConverter :
TypeConverter
System\Windows\Input\InputScopeConverter.cs (1)
23
public class InputScopeConverter :
TypeConverter
System\Windows\Input\InputScopeNameConverter.cs (1)
23
public class InputScopeNameConverter :
TypeConverter
System\Windows\Markup\XmlLanguageConverter.cs (1)
23
public class XmlLanguageConverter:
TypeConverter
System\Windows\Media\Animation\KeySplineConverter.cs (1)
18
public class KeySplineConverter :
TypeConverter
System\Windows\Media\Animation\KeyTimeConverter.cs (1)
18
public class KeyTimeConverter :
TypeConverter
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (1)
17
public sealed class RepeatBehaviorConverter :
TypeConverter
System\Windows\Media\ColorConverter.cs (1)
16
public sealed class ColorConverter :
TypeConverter
System\Windows\Media\FontFamilyConverter.cs (1)
16
public class FontFamilyConverter :
TypeConverter
System\Windows\Media\Generated\BrushConverter.cs (1)
16
public sealed class BrushConverter :
TypeConverter
System\Windows\Media\Generated\CacheModeConverter.cs (1)
16
public sealed class CacheModeConverter :
TypeConverter
System\Windows\Media\Generated\DoubleCollectionConverter.cs (1)
20
public sealed class DoubleCollectionConverter :
TypeConverter
System\Windows\Media\Generated\GeometryConverter.cs (1)
16
public sealed class GeometryConverter :
TypeConverter
System\Windows\Media\Generated\Int32CollectionConverter.cs (1)
20
public sealed class Int32CollectionConverter :
TypeConverter
System\Windows\Media\Generated\PathFigureCollectionConverter.cs (1)
16
public sealed class PathFigureCollectionConverter :
TypeConverter
System\Windows\Media\Generated\PointCollectionConverter.cs (1)
20
public sealed class PointCollectionConverter :
TypeConverter
System\Windows\Media\Generated\TransformConverter.cs (1)
16
public sealed class TransformConverter :
TypeConverter
System\Windows\Media\Generated\VectorCollectionConverter.cs (1)
20
public sealed class VectorCollectionConverter :
TypeConverter
System\Windows\Media\ImageSourceConverter.cs (1)
19
public class ImageSourceConverter :
TypeConverter
System\Windows\Media\PixelFormatConverter.cs (1)
19
public sealed class PixelFormatConverter :
TypeConverter
System\Windows\Media\RequestCachePolicyConverter.cs (1)
16
public sealed class RequestCachePolicyConverter :
TypeConverter
System\Windows\Media3D\Generated\Matrix3DConverter.cs (1)
20
public sealed class Matrix3DConverter :
TypeConverter
System\Windows\Media3D\Generated\Point3DCollectionConverter.cs (1)
20
public sealed class Point3DCollectionConverter :
TypeConverter
System\Windows\Media3D\Generated\Point3DConverter.cs (1)
20
public sealed class Point3DConverter :
TypeConverter
System\Windows\Media3D\Generated\Point4DConverter.cs (1)
20
public sealed class Point4DConverter :
TypeConverter
System\Windows\Media3D\Generated\QuaternionConverter.cs (1)
20
public sealed class QuaternionConverter :
TypeConverter
System\Windows\Media3D\Generated\Rect3DConverter.cs (1)
20
public sealed class Rect3DConverter :
TypeConverter
System\Windows\Media3D\Generated\Size3DConverter.cs (1)
20
public sealed class Size3DConverter :
TypeConverter
System\Windows\Media3D\Generated\Vector3DCollectionConverter.cs (1)
20
public sealed class Vector3DCollectionConverter :
TypeConverter
System\Windows\Media3D\Generated\Vector3DConverter.cs (1)
20
public sealed class Vector3DConverter :
TypeConverter
System\Windows\TextDecorationCollectionConverter.cs (1)
15
public sealed class TextDecorationCollectionConverter :
TypeConverter
PresentationFramework (22)
System\Windows\Controls\DataGridLengthConverter.cs (1)
17
public class DataGridLengthConverter :
TypeConverter
System\Windows\Controls\VirtualizationCacheLengthConverter.cs (1)
21
public class VirtualizationCacheLengthConverter :
TypeConverter
System\Windows\CornerRadiusConverter.cs (1)
16
public class CornerRadiusConverter :
TypeConverter
System\Windows\DeferrableContentConverter.cs (1)
14
public class DeferrableContentConverter :
TypeConverter
System\Windows\DialogResultConverter.cs (1)
20
public class DialogResultConverter:
TypeConverter
System\Windows\DynamicResourceExtensionConverter.cs (1)
22
public class DynamicResourceExtensionConverter:
TypeConverter
System\Windows\EventSetterHandlerConverter.cs (1)
16
public sealed class EventSetterHandlerConverter :
TypeConverter
System\Windows\FigureLengthConverter.cs (1)
24
public class FigureLengthConverter:
TypeConverter
System\Windows\FontSizeConverter.cs (1)
22
public class FontSizeConverter :
TypeConverter
System\Windows\GridLengthConverter.cs (1)
27
public class GridLengthConverter:
TypeConverter
System\Windows\Input\Command\CommandConverter.cs (1)
24
public sealed class CommandConverter :
TypeConverter
System\Windows\LengthConverter.cs (1)
25
public class LengthConverter:
TypeConverter
System\Windows\Markup\DependencyPropertyConverter.cs (1)
22
public sealed class DependencyPropertyConverter :
TypeConverter
System\Windows\Markup\RoutedEventConverter.cs (1)
15
public sealed class RoutedEventConverter :
TypeConverter
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (1)
20
public sealed class SetterTriggerConditionValueConverter :
TypeConverter
System\Windows\Markup\TemplateKeyConverter.cs (1)
13
public sealed class TemplateKeyConverter :
TypeConverter
System\Windows\PropertyPathConverter.cs (1)
24
public sealed class PropertyPathConverter:
TypeConverter
System\Windows\SystemKeyConverter.cs (1)
24
internal class SystemKeyConverter :
TypeConverter
System\Windows\TemplateBindingExpressionConverter.cs (1)
23
public class TemplateBindingExpressionConverter:
TypeConverter
System\Windows\TemplateBindingExtensionConverter.cs (1)
23
public class TemplateBindingExtensionConverter :
TypeConverter
System\Windows\ThemeModeConverter.cs (1)
19
public class ThemeModeConverter:
TypeConverter
System\Windows\ThicknessConverter.cs (1)
24
public class ThicknessConverter :
TypeConverter
System.CodeDom (2)
Microsoft\CSharp\CSharpModifierAttributeConverter.cs (1)
10
internal abstract class CSharpModifierAttributeConverter :
TypeConverter
Microsoft\VisualBasic\VBModifierAttributeConverter.cs (1)
10
internal abstract class VBModifierAttributeConverter :
TypeConverter
System.ComponentModel.TypeConverter (27)
System\ComponentModel\BaseNumberConverter.cs (1)
12
public abstract class BaseNumberConverter :
TypeConverter
System\ComponentModel\BooleanConverter.cs (1)
11
public class BooleanConverter :
TypeConverter
System\ComponentModel\CharConverter.cs (1)
12
public class CharConverter :
TypeConverter
System\ComponentModel\CollectionConverter.cs (1)
14
public class CollectionConverter :
TypeConverter
System\ComponentModel\CultureInfoConverter.cs (1)
18
public class CultureInfoConverter :
TypeConverter
System\ComponentModel\DateOnlyConverter.cs (1)
13
public class DateOnlyConverter :
TypeConverter
System\ComponentModel\DateTimeConverter.cs (1)
15
public class DateTimeConverter :
TypeConverter
System\ComponentModel\DateTimeOffsetConverter.cs (1)
14
public class DateTimeOffsetConverter :
TypeConverter
System\ComponentModel\Design\DesignerOptionService.cs (1)
435
internal sealed class DesignerOptionConverter :
TypeConverter
System\ComponentModel\EnumConverter.cs (1)
18
public class EnumConverter :
TypeConverter
System\ComponentModel\ExpandableObjectConverter.cs (1)
12
public class ExpandableObjectConverter :
TypeConverter
System\ComponentModel\GuidConverter.cs (1)
16
public class GuidConverter :
TypeConverter
System\ComponentModel\MultilineStringConverter.cs (1)
12
public class MultilineStringConverter :
TypeConverter
System\ComponentModel\NullableConverter.cs (1)
16
public class NullableConverter :
TypeConverter
System\ComponentModel\ReferenceConverter.cs (1)
16
public class ReferenceConverter :
TypeConverter
System\ComponentModel\StringConverter.cs (1)
12
public class StringConverter :
TypeConverter
System\ComponentModel\TimeOnlyConverter.cs (1)
13
public class TimeOnlyConverter :
TypeConverter
System\ComponentModel\TimeSpanConverter.cs (1)
15
public class TimeSpanConverter :
TypeConverter
System\ComponentModel\TypeListConverter.cs (1)
13
public abstract class TypeListConverter :
TypeConverter
System\ComponentModel\UriTypeConverter.cs (1)
17
public class UriTypeConverter :
TypeConverter
System\ComponentModel\VersionConverter.cs (1)
16
public class VersionConverter :
TypeConverter
System\Drawing\ColorConverter.cs (1)
15
public class ColorConverter :
TypeConverter
System\Drawing\PointConverter.cs (1)
13
public class PointConverter :
TypeConverter
System\Drawing\RectangleConverter.cs (1)
13
public class RectangleConverter :
TypeConverter
System\Drawing\SizeConverter.cs (1)
13
public class SizeConverter :
TypeConverter
System\Drawing\SizeFConverter.cs (1)
13
public class SizeFConverter :
TypeConverter
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (1)
14
public class ExtendedProtectionPolicyTypeConverter :
TypeConverter
System.Configuration.ConfigurationManager (2)
System\Configuration\ConfigurationConverterBase.cs (1)
8
public abstract class ConfigurationConverterBase :
TypeConverter
System\Configuration\IdnElement.cs (1)
39
private sealed class UriIdnScopeTypeConverter :
TypeConverter
System.Data.Common (1)
System\Data\ColumnTypeConverter.cs (1)
16
internal sealed class ColumnTypeConverter :
TypeConverter
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonControlLengthConverter.cs (1)
22
public class RibbonControlLengthConverter :
TypeConverter
Microsoft\Windows\Controls\Ribbon\StringCollectionConverter.cs (1)
19
public class StringCollectionConverter :
TypeConverter
System.Windows.Forms (20)
System\Resources\ResxFileRef.Converter.cs (1)
14
public class Converter :
TypeConverter
System\Windows\Forms\ActiveX\AxHost.StateConverter.cs (1)
15
public class StateConverter :
TypeConverter
System\Windows\Forms\ComponentModel\COM2Interop\COM2EnumConverter.cs (1)
9
internal class Com2EnumConverter :
TypeConverter
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
13
internal class Com2ExtendedTypeConverter :
TypeConverter
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyleConverter.cs (1)
11
public class DataGridViewCellStyleConverter :
TypeConverter
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
17
public class LinkAreaConverter :
TypeConverter
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
13
public class LinkConverter :
TypeConverter
System\Windows\Forms\Controls\ListView\ListViewGroupConverter.cs (1)
15
internal class ListViewGroupConverter :
TypeConverter
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
17
public class SelectionRangeConverter :
TypeConverter
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionConverter.cs (1)
14
private class ExceptionConverter :
TypeConverter
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (1)
13
public class OpacityConverter :
TypeConverter
System\Windows\Forms\Controls\TreeView\TreeNodeConverter.cs (1)
16
public class TreeNodeConverter :
TypeConverter
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridPreferredColumnWidthTypeConverter.cs (1)
20
public class DataGridPreferredColumnWidthTypeConverter :
TypeConverter
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
12
public class ListBindingConverter :
TypeConverter
System\Windows\Forms\Input\CursorConverter.cs (1)
16
public class CursorConverter :
TypeConverter
System\Windows\Forms\Input\KeysConverter.cs (1)
15
public class KeysConverter :
TypeConverter
, IComparer
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
11
internal class TableLayoutPanelCellPositionTypeConverter :
TypeConverter
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (1)
12
internal class StyleConverter :
TypeConverter
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettingsTypeConverter.cs (1)
12
public class TableLayoutSettingsTypeConverter :
TypeConverter
System\Windows\Forms\Scrolling\ScrollableControl.DockPaddingEdges.cs (1)
10
public class DockPaddingEdgesConverter :
TypeConverter
System.Windows.Forms.Design (4)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
282
private class EventConverter :
TypeConverter
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
292
private class ReadOnlyCollectionConverter :
TypeConverter
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
13
private class ModifierConverter :
TypeConverter
System\Windows\Forms\Design\DataMemberFieldConverter.cs (1)
9
internal class DataMemberFieldConverter :
TypeConverter
System.Windows.Forms.Primitives (1)
System\Windows\Forms\PaddingConverter.cs (1)
12
public class PaddingConverter :
TypeConverter
System.Windows.Forms.Tests (7)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (1)
1371
private class CustomTypeConverter :
TypeConverter
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (2)
1857
private class NullStringConverter :
TypeConverter
1865
private class EmptyStringConverter :
TypeConverter
System\Windows\Forms\ListControlTests.cs (3)
3040
private class CustomTypeConverter :
TypeConverter
3058
private class NonCriticalThrowingTypeConverter :
TypeConverter
3072
private class CriticalThrowingTypeConverter :
TypeConverter
System\Windows\Forms\PropertyGridInternal\PropertiesTabTests.cs (1)
229
private class CustomTypeConverter :
TypeConverter
System.Xaml (10)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\Replacements\TypeUriConverter.cs (1)
17
internal class TypeUriConverter :
TypeConverter
System\Windows\Markup\NameReferenceConverter.cs (1)
13
public class NameReferenceConverter:
TypeConverter
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (1)
14
internal class StaticExtensionConverter :
TypeConverter
System\Windows\Markup\TypeExtensionConverter.cs (1)
14
internal class TypeExtensionConverter :
TypeConverter
System\Xaml\EventConverter.cs (1)
10
internal class EventConverter :
TypeConverter
System\Xaml\Replacements\DateTimeConverter2.cs (1)
16
internal class DateTimeConverter2 :
TypeConverter
System\Xaml\Replacements\DateTimeOffsetConverter2.cs (1)
14
internal class DateTimeOffsetConverter2 :
TypeConverter
System\Xaml\Replacements\TypeListConverter.cs (1)
15
internal class TypeListConverter :
TypeConverter
System\Xaml\Replacements\TypeTypeConverter.cs (1)
17
internal class TypeTypeConverter :
TypeConverter
System\Xaml\Schema\XamlTypeTypeConverter.cs (1)
12
public class XamlTypeTypeConverter :
TypeConverter
System.Xaml.Tests (12)
System\Windows\Markup\ValueSerializerTests.cs (6)
459
public class CustomTypeConverter :
TypeConverter
484
public class CannotConvertToTypeConverter :
TypeConverter
497
public class CannotConvertFromTypeConverter :
TypeConverter
510
public class PublicClass :
TypeConverter
516
internal class InternalClass :
TypeConverter
521
internal class PrivateClass :
TypeConverter
System\Xaml\Replacements\TypeUriConverterTests.cs (6)
210
public class CantConvertToStringConverter :
TypeConverter
223
public class CantConvertToUriConverter :
TypeConverter
236
public class CantConvertToInstanceDescriptorConverter :
TypeConverter
249
public class CantConvertFromStringConverter :
TypeConverter
262
public class CantConvertFromUriConverter :
TypeConverter
275
public class ThrowsNotSupportedExceptionConverter :
TypeConverter
WindowsBase.Tests (2)
System\Windows\Markup\Primitives\MarkupObjectTests.cs (1)
460
private class CustomTypeConverter :
TypeConverter
System\Windows\Markup\Primitives\MarkupPropertyTests.cs (1)
548
public class CustomTypeConverter :
TypeConverter
WinFormsControlsTest (1)
UserControls\UserControlWithObjectCollectionEditor.cs (1)
31
internal class SomeCollectionTypeConverter :
TypeConverter
6 instantiations of TypeConverter
System.ComponentModel.TypeConverter (2)
System\ComponentModel\CustomTypeDescriptor.cs (1)
80
return 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)
36
get => _converter ??= new
TypeConverter
();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
482
return new
TypeConverter
();
515
return localConverter ?? new
TypeConverter
();
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
463
typeConverter ??= new
TypeConverter
();
802 references to TypeConverter
BinaryFormatTests (2)
FormatTests\FormattedObject\BinaryFormattedTypes.cs (2)
22
var
converter = TypeDescriptor.GetConverter(type);
44
var
converter = TypeDescriptor.GetConverter(type);
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
685
MetadataReference.CreateFromFile(typeof(
TypeConverter
).Assembly.Location),
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
154
public virtual
TypeConverter
GetConverter(Type type)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
78
public override
TypeConverter
GetConverter(Type type)
Microsoft.AspNetCore.Components (4)
BindConverter.cs (4)
1836
var
typeConverter = TypeDescriptor.GetConverter(typeof(T));
1840
$"The type '{typeof(T).FullName}' does not have an associated {typeof(
TypeConverter
).Name} that supports " +
2043
var
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)
292
var
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)
17
private readonly
TypeConverter
_typeConverter;
ModelBinding\ModelBindingHelper.cs (1)
692
var
converter = TypeDescriptor.GetConverter(destinationType);
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\EnumTypeModelBinderTest.cs (4)
76
var
enumConverter = TypeDescriptor.GetConverter(modelType);
100
var
enumConverter = TypeDescriptor.GetConverter(GetUnderlyingType(modelType));
162
var
enumConverter = TypeDescriptor.GetConverter(modelType);
187
var
enumConverter = TypeDescriptor.GetConverter(GetUnderlyingType(modelType));
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
952
TypeConverter
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)
337
Dim converter As
TypeConverter
= TypeDescriptor.GetConverter(GetType(DiskSpaceExhaustedOption))
406
Dim converter As
TypeConverter
= TypeDescriptor.GetConverter(GetType(LogFileLocation))
432
Dim 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)
1655
TypeConverter
converter = codeProvider.GetConverter(typeof(MemberAttributes));
1723
TypeConverter
converter = codeProvider.GetConverter(typeof(TypeAttributes));
1788
TypeConverter
converter = null;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2538
TypeConverter
boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
429
TypeConverter
typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
PresentationCore (16)
MS\Internal\FontFace\CompositeFontParser.cs (2)
957
private
TypeConverter
_doubleTypeConverter;
958
private
TypeConverter
_xmlLanguageTypeConverter;
System\Windows\Input\Command\KeyGesture.cs (1)
310
private static
TypeConverter
_keyGestureConverter = new KeyGestureConverter();
System\Windows\Input\Command\KeyGestureValueSerializer.cs (2)
59
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(KeyGesture));
74
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(KeyGesture));
System\Windows\Input\Command\MouseActionValueSerializer.cs (2)
52
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(MouseAction));
67
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(MouseAction));
System\Windows\Input\Command\MouseGestureConverter.cs (4)
75
TypeConverter
mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction));
86
TypeConverter
modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys));
154
TypeConverter
modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys));
163
TypeConverter
mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction));
System\Windows\Input\Command\MouseGestureValueSerializer.cs (2)
64
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(MouseGesture));
79
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(MouseGesture));
System\Windows\Input\CursorConverter.cs (3)
56
public override
TypeConverter
.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
70
_standardValues = new
TypeConverter
.StandardValuesCollection(values);
230
private
TypeConverter
.StandardValuesCollection _standardValues;
PresentationCore.Tests (3)
BinaryFormat\BinaryFormattedTypes.cs (2)
23
var
converter = TypeDescriptor.GetConverter(type);
45
var
converter = TypeDescriptor.GetConverter(type);
TestUtilities\BinaryFormatTestExtensions.cs (1)
49
TypeConverter
converter;
PresentationFramework (80)
MS\Internal\Data\DefaultValueConverter.cs (7)
34
protected DefaultValueConverter(
TypeConverter
typeConverter, Type sourceType, Type targetType,
61
TypeConverter
typeConverter;
176
internal static
TypeConverter
GetConverter(Type type)
178
TypeConverter
typeConverter = null;
364
private
TypeConverter
_typeConverter;
384
public SourceDefaultValueConverter(
TypeConverter
typeConverter, Type sourceType, Type targetType,
420
public TargetDefaultValueConverter(
TypeConverter
typeConverter, Type sourceType, Type targetType,
MS\Internal\Data\PropertyPathWorker.cs (1)
1382
TypeConverter
tc = TypeDescriptor.GetConverter(paramType);
System\Windows\Controls\ContentPresenter.cs (3)
1018
TypeConverter
tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content));
1120
TypeConverter
tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content));
1177
TypeConverter
tc = null;
System\Windows\Data\BindingExpressionBase.cs (1)
2185
TypeConverter
converter = DefaultValueConverter.GetConverter(dp.PropertyType);
System\Windows\Documents\DPTypeDescriptorContext.cs (2)
73
System.ComponentModel.
TypeConverter
typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType);
130
System.ComponentModel.
TypeConverter
typeConverter = new CultureInfoIetfLanguageTagConverter();
System\Windows\Documents\TextRange.cs (1)
791
System.ComponentModel.
TypeConverter
typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(formattingProperty.PropertyType);
System\Windows\Documents\TextRangeSerialization.cs (1)
1126
System.ComponentModel.
TypeConverter
typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (2)
861
internal static
TypeConverter
CreateKnownTypeConverter(Int16 converterId)
863
TypeConverter
o = null;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (7)
34
private Dictionary<int,
TypeConverter
> _typeConverterMap = new Dictionary<int,
TypeConverter
>();
35
private Dictionary<Type,
TypeConverter
> _enumTypeConverterMap = new Dictionary<Type,
TypeConverter
>();
1525
TypeConverter
converter;
1587
TypeConverter
converter = null;
1623
internal virtual object CreateTypeConverterMarkupExtension(XamlMember property,
TypeConverter
converter, object propertyValue, Baml2006ReaderSettings settings)
System\Windows\Markup\Baml2006\Baml2006ReaderInternal.cs (1)
46
internal override object CreateTypeConverterMarkupExtension(XamlMember property,
TypeConverter
converter, object propertyValue, Baml2006ReaderSettings settings)
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (2)
11
private
TypeConverter
_converter;
14
public TypeConverterMarkupExtension(
TypeConverter
converter, object value)
System\Windows\Markup\Baml2006\WpfKnownMember.cs (1)
149
protected override XamlValueConverter<
TypeConverter
> LookupTypeConverter()
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
212
protected override XamlValueConverter<
TypeConverter
> LookupTypeConverter()
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (3)
252
internal XamlValueConverter<
TypeConverter
> GetTypeConverter(Type converterType)
256
return base.GetValueConverter<
TypeConverter
>(typeof(EnumConverter), GetXamlType(converterType));
260
return base.GetValueConverter<
TypeConverter
>(converterType, null);
System\Windows\Markup\BamlMapTable.cs (16)
222
internal
TypeConverter
GetKnownConverterFromType(Type type)
226
TypeConverter
converter;
242
internal static
TypeConverter
GetKnownConverterFromType_NoCache(Type type)
246
TypeConverter
tc;
266
tc = KnownTypes.CreateKnownElement(typeId) as
TypeConverter
;
527
internal
TypeConverter
GetConverterFromId (
532
TypeConverter
tc = null;
567
tc = CreateKnownTypeFromId(typeId) as
TypeConverter
;
582
tc = Activator.CreateInstance(t) as
TypeConverter
;
586
tc = XamlTypeMapper.CreateInternalInstance(pc, t) as
TypeConverter
;
1707
private
TypeConverter
GetConverterFromCache(short typeId)
1709
TypeConverter
tc = null;
1712
tc = _converterCache[typeId] as
TypeConverter
;
1718
private
TypeConverter
GetConverterFromCache(Type type)
1720
TypeConverter
tc = null;
1723
tc = _converterCache[type] as
TypeConverter
;
System\Windows\Markup\BamlReader.cs (1)
1076
TypeConverter
converter = TypeDescriptor.GetConverter(value.GetType());
System\Windows\Markup\BamlRecordReader.cs (1)
1594
TypeConverter
converter = XamlTypeMapper.GetTypeConverter(paramInfo.ParameterType);
System\Windows\Markup\BamlRecords.cs (1)
2538
TypeConverter
boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
System\Windows\Markup\ParserContext.cs (2)
99
TypeConverter
typeConverter = TypeDescriptor.GetConverter(typeof(XmlSpace));
429
TypeConverter
typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
System\Windows\Markup\Primitives\ElementMarkupObject.cs (3)
356
TypeConverter
converter = TypeDescriptor.GetConverter(instance);
803
TypeConverter
converter = TypeDescriptor.GetConverter(value);
901
TypeConverter
converter = TypeDescriptor.GetConverter(value);
System\Windows\Markup\SetterTriggerConditionValueConverter.cs (3)
111
System.Xaml.Schema.XamlValueConverter<
TypeConverter
> typeConverter = null;
143
TypeConverter
converter = null;
170
converter = (
TypeConverter
)typeConverter.ConverterInstance;
System\Windows\Markup\XamlTypeMapper.cs (12)
522
TypeConverter
typeConvert;
589
else if (typeConvert.GetType() == typeof(
TypeConverter
))
3470
internal
TypeConverter
GetTypeConverter(Type type)
3475
TypeConverter
typeConverter = null;
3497
typeConverter = CreateInstance(converterType) as
TypeConverter
;
3558
internal
TypeConverter
GetPropertyConverter(Type propType, object dpOrPiOrMi)
3561
TypeConverter
typeConverter = null;
3572
typeConverter = (
TypeConverter
)ret;
3585
typeConverter = CreateInstance(converterType) as
TypeConverter
;
3951
internal
TypeConverter
Converter
4047
TypeConverter
converter)
4063
TypeConverter
_typeConverter;
System\Windows\NullableBoolConverter.cs (3)
56
public override
TypeConverter
.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
58
return _standardValues ??= new
TypeConverter
.StandardValuesCollection(new Nullable<bool>[]
68
private static
TypeConverter
.StandardValuesCollection _standardValues;
System\Windows\PropertyPath.cs (1)
783
TypeConverter
tc = TypeDescriptor.GetConverter(type);
System\Windows\PropertyPathConverter.cs (1)
264
TypeConverter
converter = TypeDescriptor.GetConverter(type);
System\Windows\SourceUriTypeConverterMarkupExtension.cs (1)
20
public SourceUriTypeConverterMarkupExtension(
TypeConverter
converter, object value, Assembly assemblyInfo) : base(converter, value)
System\Windows\StyleHelper.cs (1)
5902
TypeConverter
typeConverter = DefaultValueConverter.GetConverter(stateType);
System\Windows\TemplateContent.cs (1)
860
TypeConverter
converter = null;
ReachFramework (39)
Serialization\Manager\MetroSerializationManager.cs (5)
147
TypeConverter
165
TypeConverter
724
TypeConverter
typeConverter = _serializationManager.GetTypeConverter(serializableObject);
805
TypeConverter
typeConverterForProperty = null;
968
TypeConverter
typeConverter = _serializationManager.GetTypeConverter(serializableObjectType);
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
173
TypeConverter
typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
211
TypeConverter
typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
252
TypeConverter
typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
292
TypeConverter
typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedPageSerializer.cs (1)
328
TypeConverter
typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachFixedPageSerializerAsync.cs (1)
300
TypeConverter
typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\ReachSerializableProperties.cs (4)
466
TypeConverter
converter = this.TypeConverter;
582
TypeConverter
587
TypeConverter
converter = null;
822
TypeConverter
converter = this.TypeConverter;
Serialization\Manager\ReachSerializationCacheItems.cs (10)
70
TypeConverter
typeConverter
106
TypeConverter
typeConverterForProperty = null;
171
TypeConverter
187
out
TypeConverter
typeConverterForProperty,
264
TypeConverter
typeConverter;
298
TypeConverter
typeConverterForProperty,
345
TypeConverter
425
TypeConverter
typeConverterForProperty;
445
TypeConverter
typeConverterForProperty,
470
out
TypeConverter
typeConverterForProperty,
Serialization\Manager\XpsOMFixedPageSerializer.cs (1)
286
TypeConverter
typeConverter = serializablePropertyContext.TypeConverter;
Serialization\Manager\XpsOMSerializationManager.cs (4)
203
TypeConverter
208
TypeConverter
typeConverter = null;
235
TypeConverter
240
TypeConverter
typeConverter = null;
Serialization\Manager\XpsSerializationManager.cs (4)
358
TypeConverter
363
TypeConverter
typeConverter = null;
390
TypeConverter
395
TypeConverter
typeConverter = null;
Serialization\VisualSerializer.cs (3)
323
TypeConverter
converter = _manager.GetTypeConverter(typeof(Color));
609
TypeConverter
converter = _manager.GetTypeConverter(typeof(BitmapSource));
2082
TypeConverter
converter = _manager.GetTypeConverter(typeof(GlyphRun));
Serialization\VisualTreeFlattener.cs (2)
233
internal override
TypeConverter
GetTypeConverter(Object serializedObject)
238
internal 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)
41
public override
TypeConverter
GetConverter(Type type) =>
Microsoft\VisualBasic\VBCodeProvider.cs (1)
43
public override
TypeConverter
GetConverter(Type type) =>
System\CodeDom\Compiler\CodeDomProvider.cs (1)
134
public virtual
TypeConverter
GetConverter(Type type) => TypeDescriptor.GetConverter(type);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (2)
228
TypeConverter
converter = GetOperandTypeConverter();
255
private
TypeConverter
GetOperandTypeConverter() =>
System.ComponentModel.TypeConverter (84)
System\ComponentModel\AmbientValueAttribute.cs (1)
45
static
TypeConverter
TypeDescriptorGetConverter([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) => TypeDescriptor.GetConverter(type);
System\ComponentModel\CustomTypeDescriptor.cs (4)
72
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage)]
73
public virtual
TypeConverter
? GetConverter()
87
public virtual
TypeConverter
? GetConverterFromRegisteredType()
110
TypeConverter
? Forward() => GetConverter();
System\ComponentModel\EnumConverter.cs (1)
314
/// <see cref='System.ComponentModel.
TypeConverter
.GetStandardValues()'/>
System\ComponentModel\IComNativeDescriptorHandler.cs (1)
16
TypeConverter
GetConverter(object component);
System\ComponentModel\ICustomTypeDescriptor.cs (3)
32
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage)]
33
TypeConverter
? GetConverter();
87
TypeConverter
? 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
277
public
TypeConverter
UnderlyingTypeConverter { get; }
System\ComponentModel\PropertyDescriptor.cs (8)
20
private
TypeConverter
? _converter;
66
public virtual
TypeConverter
Converter
81
if (converterType != null && typeof(
TypeConverter
).IsAssignableFrom(converterType))
83
_converter = (
TypeConverter
)CreateInstance(converterType)!;
96
public virtual
TypeConverter
ConverterFromRegisteredType
121
TypeConverter
? CreateConverterFromTypeName(TypeConverterAttribute attr)
124
if (converterType != null && typeof(
TypeConverter
).IsAssignableFrom(converterType))
126
return (
TypeConverter
?)CreateInstance(converterType)!;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (14)
97
/// Provides a way to create <see cref="
TypeConverter
"/> instances, and cache them where applicable.
101
private readonly Func<Type,
TypeConverter
> _constructionFunc;
105
private
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,
117
public IntrinsicTypeConverterData(Func<Type,
TypeConverter
> constructionFunc, bool cacheConverterInstance = true)
123
public
TypeConverter
GetOrCreateConverterInstance(Type innerType)
371
internal
TypeConverter
GetConverter([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type, object? instance)
377
internal
TypeConverter
GetConverterFromRegisteredType(Type type, object? instance)
508
internal
TypeConverter
GetExtendedConverter(object instance)
1556
private static
TypeConverter
GetIntrinsicTypeConverter(Type callingType)
1558
TypeConverter
converter;
1624
TypeConverter
converter = GetIntrinsicTypeConverter(callingType);
1627
return (converter.GetType() != typeof(
TypeConverter
));
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (6)
24
private
TypeConverter
? _converter;
184
internal
TypeConverter
GetConverter(object? instance, bool verifyIsRegisteredType)
200
if (converterType != null && typeof(
TypeConverter
).IsAssignableFrom(converterType))
207
return (
TypeConverter
)ReflectTypeDescriptionProvider.CreateInstance(converterType, _type)!;
220
if (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.")]
834
public static
TypeConverter
GetConverter(object component) => GetConverter(component, false);
840
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage + " The Type of component cannot be statically discovered.")]
841
public static
TypeConverter
GetConverter(object component, bool noCustomTypeDesc)
843
TypeConverter
? converter = GetDescriptor(component, noCustomTypeDesc)!.GetConverter();
853
public static
TypeConverter
GetConverterFromRegisteredType(object component)
855
TypeConverter
? converter = GetDescriptorFromRegisteredType(component)!.GetConverterFromRegisteredType();
863
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage)]
864
public static
TypeConverter
GetConverter([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
871
internal static
TypeConverter
GetConverterTrimUnsafe([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) =>
877
public static
TypeConverter
GetConverterFromRegisteredType(Type type)
883
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage)]
2821
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage)]
2822
TypeConverter
ICustomTypeDescriptor.GetConverter() => _handler.GetConverter(_instance);
3120
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage)]
3121
TypeConverter
ICustomTypeDescriptor.GetConverter()
3123
TypeConverter
? converter = _primary.GetConverter() ?? _secondary.GetConverter();
3498
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage)]
3499
TypeConverter
ICustomTypeDescriptor.GetConverter()
3513
TypeConverter
? converter = desc.GetConverter();
3521
TypeConverter
ICustomTypeDescriptor.GetConverterFromRegisteredType()
3535
TypeConverter
? converter = desc.GetConverterFromRegisteredType();
3871
[RequiresUnreferencedCode(
TypeConverter
.RequiresUnreferencedCodeMessage)]
3872
public
TypeConverter
GetConverter()
3878
TypeConverter
? converter;
3899
public
TypeConverter
GetConverterFromRegisteredType()
3905
TypeConverter
? converter;
System\Drawing\ColorConverter.cs (1)
75
TypeConverter
intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\PointConverter.cs (2)
41
TypeConverter
intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
72
TypeConverter
intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\RectangleConverter.cs (2)
41
TypeConverter
intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
70
TypeConverter
intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\SizeConverter.cs (2)
41
TypeConverter
intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
70
TypeConverter
intConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(int));
System\Drawing\SizeFConverter.cs (2)
41
TypeConverter
floatConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(float));
69
TypeConverter
floatConverter = TypeDescriptor.GetConverterTrimUnsafe(typeof(float));
System.Configuration.ConfigurationManager (12)
System\Configuration\ApplicationSettingsBase.cs (1)
518
TypeConverter
tc = TypeDescriptor.GetConverter(propertyInfo.PropertyType);
System\Configuration\ConfigurationProperty.cs (7)
15
private
TypeConverter
_converter;
49
TypeConverter
typeConverter,
58
TypeConverter
typeConverter,
79
TypeConverter
typeConverter = null;
87
typeConverter = TypeUtil.CreateInstance<
TypeConverter
>(((TypeConverterAttribute)attribute).ConverterTypeName);
200
public
TypeConverter
Converter
222
TypeConverter
converter,
System\Configuration\InfiniteTimeSpanConverter.cs (1)
11
private static readonly
TypeConverter
s_timeSpanConverter = TypeDescriptor.GetConverter(typeof(TimeSpan));
System\Configuration\PropertyInformation.cs (1)
90
public
TypeConverter
Converter => Prop.Converter;
System\Configuration\SettingsPropertyValue.cs (2)
208
TypeConverter
converter = TypeDescriptor.GetConverter(type);
261
TypeConverter
converter = TypeDescriptor.GetConverter(type);
System.Data.Common (8)
System\Data\Common\DataRecordInternal.cs (1)
321
TypeConverter
? ICustomTypeDescriptor.GetConverter()
System\Data\Common\DbConnectionStringBuilder.cs (1)
617
TypeConverter
ICustomTypeDescriptor.GetConverter()
System\Data\Common\DbDataRecord.cs (1)
80
TypeConverter
? ICustomTypeDescriptor.GetConverter() => null;
System\Data\DataRowView.cs (1)
237
TypeConverter
? ICustomTypeDescriptor.GetConverter() => null;
System\Data\DataViewManagerListItemTypeDescriptor.cs (1)
52
TypeConverter
? ICustomTypeDescriptor.GetConverter() => null;
System\Data\XMLSchema.cs (3)
19
internal static
TypeConverter
GetConverter(Type type)
48
TypeConverter
converter = XMLSchema.GetConverter(type);
295
TypeConverter
converter = XMLSchema.GetConverter(type);
System.Private.Windows.Core (3)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (3)
542
/// Try to get a supported .NET type object (not WinForms) that has no <see cref="
TypeConverter
"/>.
557
/// Try to get a supported System.Drawing.Primitives object that has a <see cref="
TypeConverter
"/>.
558
/// 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)
13
public static RegistrationScope RegisterConverter(Type type,
TypeConverter
converter)
45
private readonly
TypeConverter
_converter;
47
public CustomTypeDescriptionProvider(TypeDescriptionProvider parent,
TypeConverter
converter) : base(parent)
56
private readonly
TypeConverter
_converter;
58
public TypeConverterProvider(ICustomTypeDescriptor? parent,
TypeConverter
converter) : base(parent)
61
public override
TypeConverter
GetConverter() => _converter;
System.Resources.Extensions (3)
System\Resources\Extensions\DeserializingResourceReader.cs (2)
170
TypeConverter
converter = TypeDescriptor.GetConverter(type);
184
TypeConverter
converter = TypeDescriptor.GetConverter(type);
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
100
TypeConverter
converter = TypeDescriptor.GetConverter(primitiveType);
System.Windows.Forms (112)
System\Resources\ResXDataNode.cs (2)
247
TypeConverter
converter = TypeDescriptor.GetConverter(valueType);
363
TypeConverter
converter = TypeDescriptor.GetConverter(type);
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
20
private
TypeConverter
? _converter;
75
public override
TypeConverter
Converter
System\Windows\Forms\ActiveX\AxHost.cs (1)
2465
TypeConverter
? ICustomTypeDescriptor.GetConverter()
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
20
[TypeConverter(typeof(
TypeConverter
))]
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
977
TypeConverter
converter = property.Converter;
1166
TypeConverter
converter = currentProperty.Converter;
1550
TypeConverter
converter = currentProperty.Converter;
System\Windows\Forms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (2)
13
private
TypeConverter
? _converter;
33
public override
TypeConverter
Converter
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (5)
15
private readonly
TypeConverter
? _innerConverter;
17
public Com2ExtendedTypeConverter(
TypeConverter
? innerConverter)
27
public
TypeConverter
? InnerConverter => _innerConverter;
29
public
TypeConverter
? GetWrappedConverter(Type t)
31
TypeConverter
? converter = _innerConverter;
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
15
public Com2IDispatchConverter(bool allowExpand,
TypeConverter
? baseConverter)
System\Windows\Forms\ComponentModel\COM2Interop\Com2PropertyDescriptor.Com2PropDescMainConverter.cs (1)
27
TypeConverter
baseConverter) : base(baseConverter)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (12)
23
/// of <see cref="
TypeConverter
"/>s.
37
private
TypeConverter
? _converter;
283
public override
TypeConverter
Converter
478
private
TypeConverter
GetBaseTypeConverter()
485
TypeConverter
? localConverter = null;
492
&& typeof(
TypeConverter
).IsAssignableFrom(converterType))
496
localConverter = (
TypeConverter
?)Activator.CreateInstance(converterType);
578
TypeConverter
? converter = null;
677
/// <see cref="
TypeConverter
"/> for a description of how system value editors are found. If there is no
682
public void GetTypeConverterAndTypeEditor([NotNull] ref
TypeConverter
? typeConverter, Type editorBaseType, ref object? typeEditor)
685
TypeConverter
? localConverter = typeConverter;
726
if (localConverterType != typeof(
TypeConverter
) && localConverterType != typeof(Com2PropDescMainConverter))
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (1)
38
TypeConverter
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
100
internal static
TypeConverter
GetIComponentConverter() => TypeDescriptor.GetConverter(typeof(IComponent));
334
ref
TypeConverter
currentConverter,
341
TypeConverter
subConverter = TypeDescriptor.GetConverter(type);
342
if (subConverter is not null && subConverter.GetType() != typeof(
TypeConverter
))
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.NullTypeDescriptor.cs (1)
22
TypeConverter
? ICustomTypeDescriptor.GetConverter() => GetIComponentConverter();
System\Windows\Forms\ComponentModel\COM2Interop\GetTypeConverterAndTypeEditorEvent.cs (2)
12
public GetTypeConverterAndTypeEditorEvent(
TypeConverter
? typeConverter, object? typeEditor)
18
public
TypeConverter
? TypeConverter { get; set; }
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
355
private readonly Dictionary<Type,
TypeConverter
> _converters;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (5)
272
public
TypeConverter
BoundColumnConverter(int boundColumnIndex)
912
TypeConverter
imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
943
TypeConverter
imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
1474
TypeConverter
boundColumnConverter = BoundColumnConverter(boundColumnIndex);
1481
TypeConverter
valueConverter = _owner.GetCachedTypeConverter(valueType);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
6807
internal
TypeConverter
GetCachedTypeConverter(Type type)
6809
if (_converters.TryGetValue(type, out
TypeConverter
? converter))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (10)
237
private
TypeConverter
? FormattedValueTypeConverter
241
TypeConverter
? formattedValueTypeConverter = null;
718
private
TypeConverter
? ValueTypeConverter
722
TypeConverter
? valueTypeConverter = null;
1590
TypeConverter
? valueTypeConverter,
1591
TypeConverter
? formattedValueTypeConverter,
3697
TypeConverter
? formattedValueTypeConverter,
3698
TypeConverter
? valueTypeConverter)
3712
TypeConverter
? formattedValueTypeConverter,
3713
TypeConverter
? valueTypeConverter)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
202
TypeConverter
? converter = _owner.FormattedValueTypeConverter;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
556
TypeConverter
? valueTypeConverter,
557
TypeConverter
? formattedValueTypeConverter,
1563
TypeConverter
? formattedValueTypeConverter,
1564
TypeConverter
? valueTypeConverter)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
150
internal
TypeConverter
? BoundColumnConverter { get; set; }
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (5)
311
private
TypeConverter
DisplayTypeConverter => DataGridView is not null
900
TypeConverter
? valueTypeConverter,
901
TypeConverter
? formattedValueTypeConverter,
2379
TypeConverter
? formattedValueTypeConverter,
2380
TypeConverter
? valueTypeConverter)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
354
TypeConverter
? valueTypeConverter,
355
TypeConverter
? formattedValueTypeConverter,
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
95
TypeConverter
intConverter = TypeDescriptor.GetConverter(typeof(int));
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
91
TypeConverter
intConverter = TypeDescriptor.GetConverter(typeof(int));
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
31
private
TypeConverter
? _displayMemberConverter;
32
private static
TypeConverter
? s_stringTypeConverter;
137
private
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)
38
protected
TypeConverter
? _typeConverter;
364
TypeConverter
converter = TypeConverter;
766
internal virtual
TypeConverter
TypeConverter
1446
TypeConverter
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
47
TypeConverter
parentConverter = parentEntry.TypeConverter;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (2)
30
public override
TypeConverter
Converter
138
TypeConverter
converter = TypeDescriptor.GetConverter(value);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertiesTab.cs (1)
52
TypeConverter
typeConverter = context.PropertyDescriptor is null
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
13
private
TypeConverter
? _exceptionConverter;
268
internal override
TypeConverter
TypeConverter
System\Windows\Forms\DataBinding\Binding.cs (5)
31
private
TypeConverter
? _propInfoConverter;
692
TypeConverter
? fieldInfoConverter = null;
721
TypeConverter
typeConverter = TypeDescriptor.GetConverter(value is not null ? value.GetType() : typeof(object));
766
TypeConverter
? fieldInfoConverter = null;
795
TypeConverter
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)
33
TypeConverter
? sourceConverter,
34
TypeConverter
? targetConverter,
90
TypeConverter
? sourceConverter,
91
TypeConverter
? targetConverter,
140
TypeConverter
sourceTypeTypeConverter;
156
TypeConverter
targetTypeTypeConverter;
242
TypeConverter
? targetConverter,
243
TypeConverter
? sourceConverter,
280
TypeConverter
? targetConverter,
281
TypeConverter
? sourceConverter,
298
TypeConverter
targetTypeTypeConverter = TypeDescriptor.GetConverter(targetType);
304
TypeConverter
sourceTypeTypeConverter = TypeDescriptor.GetConverter(sourceType);
531
private static
TypeConverter
? NullableUnwrap(
TypeConverter
? typeConverter)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.cs (2)
46
TypeConverter
converter = TypeDescriptor.GetConverter(this);
469
TypeConverter
converter;
System.Windows.Forms.Design (26)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
1248
TypeConverter
? ICustomTypeDescriptor.GetConverter() => null;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
61
TypeConverter
.StandardValuesCollection? standardValues = GetStandardValues();
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (4)
175
protected
TypeConverter
.StandardValuesCollection? GetStandardValues()
177
TypeConverter
converter = PropertyDescriptor.Converter;
193
TypeConverter
.StandardValuesCollection? standardValues = GetStandardValues();
223
TypeConverter
.StandardValuesCollection? standardValues = GetStandardValues();
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (2)
22
private
TypeConverter
? _converter;
51
public override
TypeConverter
Converter
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (4)
54
private static
TypeConverter
GetConverter(ITypeDescriptorContext? context)
56
TypeConverter
? 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)
35
SupportedCultures = new
TypeConverter
.StandardValuesCollection(supportedCultures);
43
internal
TypeConverter
.StandardValuesCollection? SupportedCultures { get; }
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1882
TypeConverter
converter = TypeDescriptor.GetConverter(value);
System\ComponentModel\Design\Serialization\EnumCodeDomSerializer.cs (2)
35
TypeConverter
? converter = TypeDescriptor.GetConverter(enumValue);
60
TypeConverter
enumConverter = new EnumConverter(enumValue.GetType());
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
18
private readonly
TypeConverter
_cursorConverter;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
731
TypeConverter
imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
816
TypeConverter
imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1249
TypeConverter
ICustomTypeDescriptor.GetConverter() => TypeDescriptor.GetConverter(DataGridViewColumn);
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
434
TypeConverter
imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
495
TypeConverter
imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
626
TypeConverter
imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (2)
38
private
TypeConverter
? _keysConverter;
62
private
TypeConverter
KeysConverter => _keysConverter ??= TypeDescriptor.GetConverter(typeof(Keys));
System.Windows.Forms.Design.Tests (6)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (6)
326
var
converter = TypeDescriptor.GetConverter(bitmap);
406
var
converter = TypeDescriptor.GetConverter(icon);
605
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(AxHost.State));
606
Assert.Equal(typeof(
TypeConverter
), converter.GetType());
673
private static void ValidateResultBitmap(PropertyInfo imagePropertyInfo, Bitmap expected,
TypeConverter
converter)
681
private static void ValidateResultIcon(PropertyInfo iconPropertyInfo, Icon expected,
TypeConverter
converter)
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeConverterHelper.cs (1)
40
TypeConverter
converter;
System.Windows.Forms.Primitives.TestUtilities (1)
System\Windows\Forms\BinaryFormat\BinaryFormatTestExtensions.cs (1)
53
TypeConverter
converter;
System.Windows.Forms.Tests (88)
System\Resources\ResxDataNodeTests.cs (2)
30
var
converter = TypeDescriptor.GetConverter(bitmap);
44
var
converter = TypeDescriptor.GetConverter(bitmap);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
120
public
TypeConverter
? GetConverter() => throw new NotImplementedException();
System\Windows\Forms\DataGridViewCellTests.cs (14)
4146
public void DataGridViewCell_GetFormattedValue_Invoke_ReturnsExpected(object value, int rowIndex, DataGridViewCellStyle cellStyle,
TypeConverter
valueTypeConverter,
TypeConverter
formattedValueTypeConverter, DataGridViewDataErrorContexts context, object expected)
4154
public void DataGridViewCell_GetFormattedValue_InvokeWithRow_ReturnsExpected(object value, int rowIndex, DataGridViewCellStyle cellStyle,
TypeConverter
valueTypeConverter,
TypeConverter
formattedValueTypeConverter, DataGridViewDataErrorContexts context, object expected)
4164
public void DataGridViewCell_GetFormattedValue_InvokeWithColumn_ReturnsExpected(object value, int rowIndex, DataGridViewCellStyle cellStyle,
TypeConverter
valueTypeConverter,
TypeConverter
formattedValueTypeConverter, DataGridViewDataErrorContexts context, object expected)
6145
public void DataGridViewCell_ParseFormattedValue_Invoke_ReturnsExpected(Type valueType, Type formattedValueType, object formattedValue, DataGridViewCellStyle cellStyle,
TypeConverter
formattedValueTypeConverter,
TypeConverter
valueTypeConverter, object expected)
6195
public void DataGridViewCell_ParseFormattedValue_CantConvert_ThrowsFormatException(Type valueType, Type formattedValueType, object formattedValue, DataGridViewCellStyle cellStyle,
TypeConverter
formattedValueTypeConverter,
TypeConverter
valueTypeConverter)
6558
public new object GetFormattedValue(object value, int rowIndex, ref DataGridViewCellStyle cellStyle,
TypeConverter
valueTypeConverter,
TypeConverter
formattedValueTypeConverter, DataGridViewDataErrorContexts context)
6606
public new object GetFormattedValue(object value, int rowIndex, ref DataGridViewCellStyle cellStyle,
TypeConverter
valueTypeConverter,
TypeConverter
formattedValueTypeConverter, DataGridViewDataErrorContexts context)
System\Windows\Forms\DataGridViewRowConverterTests.cs (2)
16
TypeConverter
converter = TypeDescriptor.GetConverter(row);
26
TypeConverter
converter = TypeDescriptor.GetConverter(row);
System\Windows\Forms\ListBindingHelperTests.cs (1)
807
public
TypeConverter
GetConverter()
System\Windows\Forms\ListViewGroupConverterTests.cs (19)
22
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
49
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
62
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
77
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
107
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
123
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
135
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
162
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
202
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
213
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
220
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
227
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
236
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
243
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
250
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
278
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
289
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
296
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
303
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
System\Windows\Forms\ListViewItemStateImageIndexConverterTests.cs (1)
4
using static System.ComponentModel.
TypeConverter
;
System\Windows\Forms\ListViewSubItemConverterTests.cs (13)
22
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
32
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
44
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
70
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
81
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
88
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
95
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
104
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
111
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
118
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
126
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
133
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
140
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
System\Windows\Forms\PropertyGridTests.cs (2)
3957
TypeConverter
typeConverter = gridEntry.TypeConverter;
3958
Assert.IsType<
TypeConverter
>(typeConverter);
System\Windows\Forms\SpecialFolderEnumConverterTests.cs (6)
16
TypeConverter
converter = descriptor.Converter;
23
TypeConverter
converter = GetNewSpecialFolderEnumConverter();
90
TypeConverter
converter = (
TypeConverter
)Activator.CreateInstance(descriptor.Converter.GetType(), new Type[] { typeof(CustomEnum) });
94
private
TypeConverter
GetNewSpecialFolderEnumConverter()
97
return (
TypeConverter
)Activator.CreateInstance(descriptor.Converter.GetType(), new Type[] { typeof(Environment.SpecialFolder) });
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (19)
106
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
122
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
132
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
141
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
148
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
155
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
167
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
174
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
184
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
191
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
200
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
207
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
219
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
278
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
285
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
296
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
307
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
314
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
324
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
System\Windows\Forms\TableLayoutStyleTests.cs (6)
120
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));
138
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));
148
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));
155
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));
162
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));
171
TypeConverter
converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));
System\Windows\Forms\TextBoxAutoCompleteSourceConverterTests.cs (1)
6
using static System.ComponentModel.
TypeConverter
;
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (1)
4
using static System.ComponentModel.
TypeConverter
;
System.Xaml (127)
ms\Internal\Markup\TypeConverterValueSerializer.cs (2)
18
private
TypeConverter
converter;
20
public TypeConverterValueSerializer(
TypeConverter
converter)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (7)
238
private static
TypeConverter
? GetCoreConverterFromCoreType(Type type)
240
TypeConverter
? typeConverter = null;
332
internal static
TypeConverter
? GetCoreConverterFromCustomType(Type type)
334
TypeConverter
? typeConverter = null;
441
internal static
TypeConverter
GetTypeConverter(Type type)
445
TypeConverter
? typeConverter = GetCoreConverterFromCoreType(type);
456
InvariantEnglishUS) as
TypeConverter
;
System\Windows\Markup\ValueSerializer.cs (2)
132
TypeConverter
converter = TypeConverterHelper.GetTypeConverter(type);
176
TypeConverter
converter = descriptor.Converter;
System\Windows\Markup\XamlSetTypeConverterEventArgs.cs (3)
15
public XamlSetTypeConverterEventArgs(XamlMember member,
TypeConverter
typeConverter, object value,
24
internal XamlSetTypeConverterEventArgs(XamlMember member,
TypeConverter
typeConverter, object value,
31
public
TypeConverter
TypeConverter { get; private set; }
System\Xaml\InfosetObjects\XamlObjectWriter.cs (5)
1272
XamlValueConverter<
TypeConverter
> ts = xamlType.TypeConverter;
1306
private object Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter<
TypeConverter
> typeConverter,
1312
private object Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter<
TypeConverter
> typeConverter,
1352
XamlValueConverter<
TypeConverter
> converter = property.TypeConverter;
1378
TypeConverter
typeConverter = Runtime.GetConverterInstance(converter);
System\Xaml\Runtime\ClrObjectRuntime.cs (6)
149
XamlValueConverter<
TypeConverter
> ts, object value,
178
public override bool CanConvertFrom<T>(ITypeDescriptorContext context,
TypeConverter
converter)
195
public override bool CanConvertTo(ITypeDescriptorContext context,
TypeConverter
converter, Type type)
229
public override T ConvertToValue<T>(ITypeDescriptorContext context,
TypeConverter
converter, object instance)
655
XamlValueConverter<
TypeConverter
> ts, object value)
657
TypeConverter
typeConverter = GetConverterInstance(ts);
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
162
XamlValueConverter<
TypeConverter
> ts, object value,
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (4)
77
public override object CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter<
TypeConverter
> ts, object value, XamlMember property)
117
public override bool CanConvertFrom<T>(ITypeDescriptorContext context,
TypeConverter
converter)
122
public override bool CanConvertTo(ITypeDescriptorContext context,
TypeConverter
converter, Type type)
132
public override T ConvertToValue<T>(ITypeDescriptorContext context,
TypeConverter
converter, object instance)
System\Xaml\Schema\BuiltInValueConverter.cs (56)
33
private static XamlValueConverter<
TypeConverter
> s_String;
34
private static XamlValueConverter<
TypeConverter
> s_Object;
35
private static XamlValueConverter<
TypeConverter
> s_Int32;
36
private static XamlValueConverter<
TypeConverter
> s_Int16;
37
private static XamlValueConverter<
TypeConverter
> s_Int64;
38
private static XamlValueConverter<
TypeConverter
> s_UInt32;
39
private static XamlValueConverter<
TypeConverter
> s_UInt16;
40
private static XamlValueConverter<
TypeConverter
> s_UInt64;
41
private static XamlValueConverter<
TypeConverter
> s_Boolean;
42
private static XamlValueConverter<
TypeConverter
> s_Double;
43
private static XamlValueConverter<
TypeConverter
> s_Single;
44
private static XamlValueConverter<
TypeConverter
> s_Byte;
45
private static XamlValueConverter<
TypeConverter
> s_SByte;
46
private static XamlValueConverter<
TypeConverter
> s_Char;
47
private static XamlValueConverter<
TypeConverter
> s_Decimal;
48
private static XamlValueConverter<
TypeConverter
> s_TimeSpan;
49
private static XamlValueConverter<
TypeConverter
> s_Guid;
50
private static XamlValueConverter<
TypeConverter
> s_Type;
51
private static XamlValueConverter<
TypeConverter
> s_TypeList;
52
private static XamlValueConverter<
TypeConverter
> s_DateTime;
53
private static XamlValueConverter<
TypeConverter
> s_DateTimeOffset;
54
private static XamlValueConverter<
TypeConverter
> s_CultureInfo;
56
private static XamlValueConverter<
TypeConverter
> s_Delegate;
57
private static XamlValueConverter<
TypeConverter
> s_Uri;
59
internal static XamlValueConverter<
TypeConverter
> Int32
60
=> s_Int32 ??= new BuiltInValueConverter<
TypeConverter
>(typeof(Int32Converter), () => new Int32Converter());
62
internal static XamlValueConverter<
TypeConverter
> String
63
=> s_String ??= new BuiltInValueConverter<
TypeConverter
>(typeof(StringConverter), () => new StringConverter());
65
internal static XamlValueConverter<
TypeConverter
> Object
66
=> s_Object ??= new XamlValueConverter<
TypeConverter
>(null, XamlLanguage.Object);
68
internal static XamlValueConverter<
TypeConverter
> Event
69
=> s_Delegate ??= new BuiltInValueConverter<
TypeConverter
>(typeof(EventConverter), () => new EventConverter());
71
internal static XamlValueConverter<
TypeConverter
> GetTypeConverter(Type targetType)
90
return s_Int16 ??= new BuiltInValueConverter<
TypeConverter
>(typeof(Int16Converter), () => new Int16Converter());
95
return s_Int64 ??= new BuiltInValueConverter<
TypeConverter
>(typeof(Int64Converter), () => new Int64Converter());
100
return s_UInt32 ??= new BuiltInValueConverter<
TypeConverter
>(typeof(UInt32Converter), () => new UInt32Converter());
105
return s_UInt16 ??= new BuiltInValueConverter<
TypeConverter
>(typeof(UInt16Converter), () => new UInt16Converter());
110
return s_UInt64 ??= new BuiltInValueConverter<
TypeConverter
>(typeof(UInt64Converter), () => new UInt64Converter());
115
return s_Boolean ??= new BuiltInValueConverter<
TypeConverter
>(typeof(BooleanConverter), () => new BooleanConverter());
120
return s_Double ??= new BuiltInValueConverter<
TypeConverter
>(typeof(DoubleConverter), () => new DoubleConverter());
125
return s_Single ??= new BuiltInValueConverter<
TypeConverter
>(typeof(SingleConverter), () => new SingleConverter());
130
return s_Byte ??= new BuiltInValueConverter<
TypeConverter
>(typeof(ByteConverter), () => new ByteConverter());
135
return s_SByte ??= new BuiltInValueConverter<
TypeConverter
>(typeof(SByteConverter), () => new SByteConverter());
140
return s_Char ??= new BuiltInValueConverter<
TypeConverter
>(typeof(CharConverter), () => new CharConverter());
145
return s_Decimal ??= new BuiltInValueConverter<
TypeConverter
>(typeof(DecimalConverter), () => new DecimalConverter());
150
return s_TimeSpan ??= new BuiltInValueConverter<
TypeConverter
>(typeof(TimeSpanConverter), () => new TimeSpanConverter());
155
return s_Guid ??= new BuiltInValueConverter<
TypeConverter
>(typeof(GuidConverter), () => new GuidConverter());
160
return s_Type ??= new BuiltInValueConverter<
TypeConverter
>(typeof(System.Xaml.Replacements.TypeTypeConverter), () => new System.Xaml.Replacements.TypeTypeConverter());
165
return s_TypeList ??= new BuiltInValueConverter<
TypeConverter
>(typeof(System.Xaml.Replacements.TypeListConverter), () => new System.Xaml.Replacements.TypeListConverter());
170
return s_DateTime ??= new BuiltInValueConverter<
TypeConverter
>(typeof(System.Xaml.Replacements.DateTimeConverter2), () => new System.Xaml.Replacements.DateTimeConverter2());
175
return s_DateTimeOffset ??= new BuiltInValueConverter<
TypeConverter
>(typeof(System.Xaml.Replacements.DateTimeOffsetConverter2), () => new System.Xaml.Replacements.DateTimeOffsetConverter2());
180
return s_CultureInfo ??= new BuiltInValueConverter<
TypeConverter
>(typeof(CultureInfoConverter), () => new CultureInfoConverter());
185
return s_Delegate ??= new BuiltInValueConverter<
TypeConverter
>(typeof(EventConverter), () => new EventConverter());
192
TypeConverter
stdConverter = null;
211
s_Uri = new BuiltInValueConverter<
TypeConverter
>(typeof(TypeUriConverter), () => new TypeUriConverter());
219
s_Uri = new BuiltInValueConverter<
TypeConverter
>(stdConverter.GetType(), () => TypeDescriptor.GetConverter(typeof(Uri)));
System\Xaml\Schema\MemberReflector.cs (3)
30
private NullableReference<XamlValueConverter<
TypeConverter
>> _typeConverter;
63
internal MemberReflector(XamlType type, XamlValueConverter<
TypeConverter
> typeConverter)
193
internal XamlValueConverter<
TypeConverter
> TypeConverter
System\Xaml\Schema\TypeReflector.cs (2)
59
private NullableReference<XamlValueConverter<
TypeConverter
>> _typeConverter;
262
internal XamlValueConverter<
TypeConverter
> TypeConverter
System\Xaml\Schema\XamlDirective.cs (2)
34
XamlValueConverter<
TypeConverter
> typeConverter, AllowedMemberLocations allowedLocation)
179
protected sealed override XamlValueConverter<
TypeConverter
> LookupTypeConverter()
System\Xaml\XamlLanguage.cs (1)
454
XamlValueConverter<
TypeConverter
> typeConverter, AllowedMemberLocations allowedLocation)
System\Xaml\XamlMember.cs (4)
260
public XamlValueConverter<
TypeConverter
> TypeConverter
698
protected virtual XamlValueConverter<
TypeConverter
> LookupTypeConverter()
700
XamlValueConverter<
TypeConverter
> result = null;
706
result = SchemaContext.GetValueConverter<
TypeConverter
>(converterType, null);
System\Xaml\XamlObjectReader.cs (19)
448
TypeConverter
tc = TypeConverterExtensions.GetConverterInstance(actualKeyType.TypeConverter);
454
TypeConverter
tc = TypeConverterExtensions.GetConverterInstance(keyType.TypeConverter);
849
object propertyValue, ValueSerializer propertyValueSerializer,
TypeConverter
propertyConverter, bool isXamlTemplate, XamlMember xamlProperty, SerializerContext context)
1341
TypeConverter
converter = TypeConverterExtensions.GetConverterInstance(paramXamlType.TypeConverter);
1395
bool TryGetInstanceDescriptorInfo(object value, SerializerContext context,
TypeConverter
converter, out MemberInfo member, out ICollection arguments, out bool isComplete)
1412
void ConvertToInstanceDescriptor(SerializerContext context, object instance,
TypeConverter
converter,
1431
protected void AddRecordMembers(object value, SerializerContext context,
TypeConverter
converter)
1515
TypeConverter
converter, out bool isComplete, out ParameterInfo[] methodParams)
1908
public static ObjectMarkupInfo ForObject(object value, SerializerContext context,
TypeConverter
instanceConverter = null, bool isRoot = false)
1939
TypeConverter
converter = null;
2022
static ObjectMarkupInfo ForObjectInternal(object value, SerializerContext context,
TypeConverter
converter)
2661
public bool CanConvertTo(
TypeConverter
converter, Type type)
2666
public bool CanRoundTripString(
TypeConverter
converter)
2677
public bool CanRoundtripUsingValueSerializer(ValueSerializer valueSerializer,
TypeConverter
typeConverter, object value)
2691
public T ConvertTo<T>(
TypeConverter
converter, object value)
2696
public bool TryValueSerializeToString(ValueSerializer valueSerializer,
TypeConverter
propertyConverter, SerializerContext context, ref object value)
2706
TypeConverter
actualTypeConverter = TypeConverterExtensions.GetConverterInstance(valueXamlType.TypeConverter);
2714
public bool TryTypeConvertToString(
TypeConverter
converter, ref object value)
2728
public bool TryConvertToMarkupExtension(
TypeConverter
converter, ref object value)
System\Xaml\XamlRuntime.cs (4)
29
public abstract object CreateFromValue(ServiceProviderContext serviceContext, XamlValueConverter<
TypeConverter
> ts,
34
public abstract bool CanConvertFrom<T>(ITypeDescriptorContext context,
TypeConverter
converter);
36
public abstract bool CanConvertTo(ITypeDescriptorContext context,
TypeConverter
converter, Type type);
40
public abstract T ConvertToValue<T>(ITypeDescriptorContext context,
TypeConverter
converter, object instance);
System\Xaml\XamlType.cs (6)
273
public XamlValueConverter<
TypeConverter
> TypeConverter
1230
protected virtual XamlValueConverter<
TypeConverter
> LookupTypeConverter()
1238
return SchemaContext.GetValueConverter<
TypeConverter
>(converterType, null);
1244
XamlValueConverter<
TypeConverter
> result = BaseType.TypeConverter;
1256
return SchemaContext.GetValueConverter<
TypeConverter
>(typeof(EnumConverter), this);
1259
XamlValueConverter<
TypeConverter
> result = BuiltInValueConverter.GetTypeConverter(underlyingType);
System.Xaml.Tests (131)
Common\CustomXamlType.cs (2)
202
public Optional<XamlValueConverter<
TypeConverter
>?> LookupTypeConverterResult { get; set; }
203
protected override XamlValueConverter<
TypeConverter
> LookupTypeConverter()
Common\SubXamlType.cs (1)
79
public XamlValueConverter<
TypeConverter
> LookupTypeConverterEntry() => LookupTypeConverter();
System\Windows\Markup\StaticExtensionTests.cs (5)
207
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
215
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
225
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
234
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
242
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
System\Windows\Markup\TypeExtensionTests.cs (5)
168
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
176
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
186
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
195
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
203
TypeConverter
converter = TypeDescriptor.GetConverter(extension);
System\Windows\Markup\XamlSetTypeConverterEventArgsTests.cs (1)
23
public void Ctor_XamlMember_TypeConverter_Object_ITypeDescriptorContext_CultureInfo(XamlMember member,
TypeConverter
typeConverter, object value, ITypeDescriptorContext serviceProvider, CultureInfo cultureInfo)
System\Xaml\Replacements\DateTimeConverter2Tests.cs (8)
23
TypeConverter
converter = type.TypeConverter.ConverterInstance;
42
TypeConverter
converter = type.TypeConverter.ConverterInstance;
52
TypeConverter
converter = type.TypeConverter.ConverterInstance;
64
TypeConverter
converter = type.TypeConverter.ConverterInstance;
83
TypeConverter
converter = type.TypeConverter.ConverterInstance;
93
TypeConverter
converter = type.TypeConverter.ConverterInstance;
103
TypeConverter
converter = type.TypeConverter.ConverterInstance;
111
TypeConverter
converter = type.TypeConverter.ConverterInstance;
System\Xaml\Replacements\DateTimeOffsetConverter2Tests.cs (9)
25
TypeConverter
converter = type.TypeConverter.ConverterInstance;
42
TypeConverter
converter = type.TypeConverter.ConverterInstance;
52
TypeConverter
converter = type.TypeConverter.ConverterInstance;
64
TypeConverter
converter = type.TypeConverter.ConverterInstance;
79
TypeConverter
converter = type.TypeConverter.ConverterInstance;
88
TypeConverter
converter = type.TypeConverter.ConverterInstance;
102
TypeConverter
converter = type.TypeConverter.ConverterInstance;
111
TypeConverter
converter = type.TypeConverter.ConverterInstance;
119
TypeConverter
converter = type.TypeConverter.ConverterInstance;
System\Xaml\Replacements\EventConverterTests.cs (10)
22
TypeConverter
converter = type.TypeConverter.ConverterInstance;
30
TypeConverter
converter = type.TypeConverter.ConverterInstance;
69
TypeConverter
converter = type.TypeConverter.ConverterInstance;
104
TypeConverter
converter = type.TypeConverter.ConverterInstance;
131
TypeConverter
converter = type.TypeConverter.ConverterInstance;
141
TypeConverter
converter = type.TypeConverter.ConverterInstance;
154
TypeConverter
converter = type.TypeConverter.ConverterInstance;
164
TypeConverter
converter = type.TypeConverter.ConverterInstance;
174
TypeConverter
converter = type.TypeConverter.ConverterInstance;
183
TypeConverter
converter = type.TypeConverter.ConverterInstance;
System\Xaml\Replacements\TypeListConverterTests.cs (7)
21
TypeConverter
converter = type.TypeConverter.ConverterInstance;
29
TypeConverter
converter = type.TypeConverter.ConverterInstance;
40
TypeConverter
converter = type.TypeConverter.ConverterInstance;
53
TypeConverter
converter = type.TypeConverter.ConverterInstance;
63
TypeConverter
converter = type.TypeConverter.ConverterInstance;
72
TypeConverter
converter = type.TypeConverter.ConverterInstance;
80
TypeConverter
converter = type.TypeConverter.ConverterInstance;
System\Xaml\Replacements\TypeTypeConverterTests.cs (14)
23
TypeConverter
converter = type.TypeConverter.ConverterInstance;
31
TypeConverter
converter = type.TypeConverter.ConverterInstance;
56
TypeConverter
converter = type.TypeConverter.ConverterInstance;
72
TypeConverter
converter = type.TypeConverter.ConverterInstance;
82
TypeConverter
converter = type.TypeConverter.ConverterInstance;
95
TypeConverter
converter = type.TypeConverter.ConverterInstance;
103
TypeConverter
converter = type.TypeConverter.ConverterInstance;
139
TypeConverter
converter = type.TypeConverter.ConverterInstance;
178
TypeConverter
converter = type.TypeConverter.ConverterInstance;
208
TypeConverter
converter = type.TypeConverter.ConverterInstance;
226
TypeConverter
converter = type.TypeConverter.ConverterInstance;
259
TypeConverter
converter = type.TypeConverter.ConverterInstance;
269
TypeConverter
converter = type.TypeConverter.ConverterInstance;
278
TypeConverter
converter = type.TypeConverter.ConverterInstance;
System\Xaml\Replacements\TypeUriConverterTests.cs (14)
52
TypeConverter
converter = GetTypeUriConverter();
59
TypeConverter
converter = GetTypeUriConverter();
83
TypeConverter
converter = GetTypeUriConverter();
94
TypeConverter
converter = GetTypeUriConverter();
105
TypeConverter
converter = GetTypeUriConverter();
113
TypeConverter
converter = GetTypeUriConverter();
131
TypeConverter
converter = GetTypeUriConverter();
149
TypeConverter
converter = GetTypeUriConverter();
162
TypeConverter
converter = GetTypeUriConverter();
170
TypeConverter
converter = GetTypeUriConverter();
177
TypeConverter
converter = GetTypeUriConverter();
197
TypeConverter
converter = GetTypeUriConverter();
202
private static
TypeConverter
GetTypeUriConverter()
207
return (
TypeConverter
)Activator.CreateInstance(type)!;
System\Xaml\Schema\XamlValueConverterTests.cs (3)
69
var converter = new XamlValueConverter<
TypeConverter
>(typeof(EnumConverter), type);
78
var converter = new XamlValueConverter<
TypeConverter
>(null, type, "name");
86
var converter = new XamlValueConverter<string>(typeof(
TypeConverter
), type, "name");
System\Xaml\XamlDirectiveTests.cs (7)
20
yield return new object?[] { new string[] { ""} , "", new XamlValueConverter<
TypeConverter
>(typeof(int), type), AllowedMemberLocations.None };
21
yield return new object?[] { new string[] { ""} , "", new XamlValueConverter<
TypeConverter
>(typeof(int), type), AllowedMemberLocations.None };
27
public void Ctor_Strings_String_XamlType_XamlValueConverter_AllowedMembersLocation(IEnumerable<string> xamlNamespaces, string name, XamlValueConverter<
TypeConverter
> typeConverter, AllowedMemberLocations allowedLocation)
103
yield return new object?[] { directive, new XamlDirective(new string[] { "xamlNamespace" }, "name", type1, new XamlValueConverter<
TypeConverter
>(typeof(int), type1), AllowedMemberLocations.None), true };
249
var typeConverter = new XamlValueConverter<
TypeConverter
>(typeof(int), type);
287
public SubXamlDirective(IEnumerable<string> xamlNamespaces, string name, XamlType xamlType, XamlValueConverter<
TypeConverter
> typeConverter, AllowedMemberLocations allowedLocation) : base(xamlNamespaces, name, xamlType, typeConverter, allowedLocation) { }
313
public XamlValueConverter<
TypeConverter
> LookupTypeConverterEntry() => LookupTypeConverter();
System\Xaml\XamlMemberTests.cs (15)
1687
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), false), new XamlValueConverter<
TypeConverter
>(null, XamlLanguage.Object), null };
1688
yield return new object?[] { new SubXamlMember("name", new XamlType(typeof(int), new XamlSchemaContext()), true), new XamlValueConverter<
TypeConverter
>(null, XamlLanguage.Object), null };
1700
new XamlValueConverter<
TypeConverter
>(typeof(string), null), new XamlValueConverter<
TypeConverter
>(typeof(string), null)
1711
new XamlValueConverter<
TypeConverter
>(typeof(Int32Converter), null), new XamlValueConverter<
TypeConverter
>(typeof(Int32Converter), null)
1722
new XamlValueConverter<
TypeConverter
>(null, XamlLanguage.Object), null
1729
new XamlValueConverter<
TypeConverter
>(typeof(int), null), new XamlValueConverter<
TypeConverter
>(typeof(int), null)
1734
new XamlValueConverter<
TypeConverter
>(typeof(int), null), new XamlValueConverter<
TypeConverter
>(typeof(int), null)
1739
new XamlValueConverter<
TypeConverter
>(typeof(int), null), new XamlValueConverter<
TypeConverter
>(typeof(int), null)
1754
public void LookupTypeConverter_Invoke_ReturnsExpected(SubXamlMember member, XamlValueConverter<
TypeConverter
> expectedLookup, XamlValueConverter<
TypeConverter
> expectedGet)
System\Xaml\XamlMemberTests.Mocks.cs (3)
64
public XamlValueConverter<
TypeConverter
> LookupTypeConverterEntry() => LookupTypeConverter();
179
public Optional<XamlValueConverter<
TypeConverter
>?> LookupTypeConverterResult { get; set; }
180
protected override XamlValueConverter<
TypeConverter
> LookupTypeConverter()
System\Xaml\XamlTypeTests.cs (27)
4205
yield return new object?[] { new SubXamlType(typeof(byte), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(ByteConverter), null) };
4206
yield return new object?[] { new SubXamlType(typeof(sbyte), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(SByteConverter), null) };
4207
yield return new object?[] { new SubXamlType(typeof(ushort), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(UInt16Converter), null) };
4208
yield return new object?[] { new SubXamlType(typeof(short), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(Int16Converter), null) };
4209
yield return new object?[] { new SubXamlType(typeof(uint), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(UInt32Converter), null) };
4210
yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(Int32Converter), null) };
4211
yield return new object?[] { new SubXamlType(typeof(ulong), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(UInt64Converter), null) };
4212
yield return new object?[] { new SubXamlType(typeof(long), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(Int64Converter), null) };
4213
yield return new object?[] { new SubXamlType(typeof(char), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(CharConverter), null) };
4214
yield return new object?[] { new SubXamlType(typeof(bool), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(BooleanConverter), null) };
4215
yield return new object?[] { new SubXamlType(typeof(float), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(SingleConverter), null) };
4216
yield return new object?[] { new SubXamlType(typeof(double), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(DoubleConverter), null) };
4217
yield return new object?[] { new SubXamlType(typeof(decimal), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(DecimalConverter), null) };
4218
yield return new object?[] { new SubXamlType(typeof(string), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(StringConverter), null) };
4219
yield return new object?[] { new SubXamlType(typeof(TimeSpan), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(TimeSpanConverter), null) };
4220
yield return new object?[] { new SubXamlType(typeof(Guid), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(GuidConverter), null) };
4221
yield return new object?[] { new SubXamlType(typeof(CultureInfo), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(CultureInfoConverter), null) };
4222
yield return new object?[] { new SubXamlType(typeof(ConsoleColor), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(EnumConverter), new XamlType(typeof(ConsoleColor), new XamlSchemaContext())) };
4223
yield return new object?[] { new SubXamlType(typeof(int?), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(typeof(Int32Converter), null) };
4224
yield return new object?[] { new SubXamlType(typeof(object), new XamlSchemaContext()), new XamlValueConverter<
TypeConverter
>(null, XamlLanguage.Object) };
4237
new XamlValueConverter<
TypeConverter
>(typeof(string), null)
4248
new XamlValueConverter<
TypeConverter
>(typeof(Int32Converter), null)
4266
new XamlValueConverter<
TypeConverter
>(typeof(int), null)
4271
new XamlValueConverter<
TypeConverter
>(typeof(int), null)
4276
new XamlValueConverter<
TypeConverter
>(typeof(int), null)
4281
new XamlValueConverter<
TypeConverter
>(typeof(int), null)
4301
public void LookupTypeConverter_Invoke_ReturnsExpected(SubXamlType type, XamlValueConverter<
TypeConverter
> expected)