177 references to GetConverter
BinaryFormatTests (2)
FormatTests\FormattedObject\BinaryFormattedTypes.cs (2)
22var converter = TypeDescriptor.GetConverter(type); 44var converter = TypeDescriptor.GetConverter(type);
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (1)
156return TypeDescriptor.GetConverter(type);
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
1836var typeConverter = TypeDescriptor.GetConverter(typeof(T)); 2043var typeConverter = TypeDescriptor.GetConverter(typeof(T));
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
PathStringTests.cs (1)
292var converter = TypeDescriptor.GetConverter(typeof(PathString));
Microsoft.AspNetCore.Identity.EntityFrameworkCore (1)
RoleStore.cs (1)
243return (TKey?)TypeDescriptor.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
777IsConvertibleType = TypeDescriptor.GetConverter(ModelType).CanConvertFrom(typeof(string));
Microsoft.AspNetCore.Mvc.Core (3)
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
30_typeConverter = TypeDescriptor.GetConverter(type);
ModelBinding\ModelBindingHelper.cs (2)
692var converter = TypeDescriptor.GetConverter(destinationType); 696converter = TypeDescriptor.GetConverter(value.GetType());
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\EnumTypeModelBinderTest.cs (4)
76var enumConverter = TypeDescriptor.GetConverter(modelType); 100var enumConverter = TypeDescriptor.GetConverter(GetUnderlyingType(modelType)); 162var enumConverter = TypeDescriptor.GetConverter(modelType); 187var enumConverter = TypeDescriptor.GetConverter(GetUnderlyingType(modelType));
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
952TypeConverter converter = TypeDescriptor.GetConverter(type);
Microsoft.Extensions.Identity.Stores (2)
RoleStoreBase.cs (1)
130return (TKey?)TypeDescriptor.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
UserStoreBase.cs (1)
231return (TKey?)TypeDescriptor.GetConverter(typeof(TKey)).ConvertFromInvariantString(id);
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (3)
337Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(DiskSpaceExhaustedOption)) 406Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(LogFileLocation)) 432Dim converter As TypeConverter = TypeDescriptor.GetConverter(GetType(LogFileCreationScheduleOption))
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
2544TypeConverter boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
431TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
PresentationCore (17)
MS\Internal\FontFace\CompositeFontParser.cs (1)
166_doubleTypeConverter = TypeDescriptor.GetConverter(typeof(double));
System\Windows\Input\Command\KeyGestureValueSerializer.cs (2)
63TypeConverter converter = TypeDescriptor.GetConverter(typeof(KeyGesture)); 78TypeConverter converter = TypeDescriptor.GetConverter(typeof(KeyGesture));
System\Windows\Input\Command\MouseActionValueSerializer.cs (2)
52TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseAction)); 67TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseAction));
System\Windows\Input\Command\MouseGestureConverter.cs (4)
75TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction)); 86TypeConverter modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys)); 154TypeConverter modifierKeysConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.ModifierKeys)); 163TypeConverter mouseActionConverter = TypeDescriptor.GetConverter(typeof(System.Windows.Input.MouseAction));
System\Windows\Input\Command\MouseGestureValueSerializer.cs (2)
64TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseGesture)); 79TypeConverter converter = TypeDescriptor.GetConverter(typeof(MouseGesture));
System\Windows\Media\Animation\KeyTimeConverter.cs (4)
87double doubleValue = (double)TypeDescriptor.GetConverter( 108TimeSpan timeSpanValue = (TimeSpan)TypeDescriptor.GetConverter( 183string returnValue = (string)TypeDescriptor.GetConverter( 194return TypeDescriptor.GetConverter(
System\Windows\Media\Animation\RepeatBehaviorConverter.cs (2)
85double doubleValue = (double)TypeDescriptor.GetConverter(typeof(double)).ConvertFrom(td, cultureInfo, stringDoubleValue); 94TimeSpan timeSpanValue = (TimeSpan)TypeDescriptor.GetConverter(typeof(TimeSpan)).ConvertFrom(td, cultureInfo, stringValue);
PresentationCore.Tests (3)
BinaryFormat\BinaryFormattedTypes.cs (2)
23var converter = TypeDescriptor.GetConverter(type); 45var converter = TypeDescriptor.GetConverter(type);
TestUtilities\BinaryFormatTestExtensions.cs (1)
52converter = TypeDescriptor.GetConverter(type);
PresentationFramework (14)
MS\Internal\Data\DefaultValueConverter.cs (1)
186typeConverter = TypeDescriptor.GetConverter(type);
MS\Internal\Data\PropertyPathWorker.cs (1)
1402TypeConverter tc = TypeDescriptor.GetConverter(paramType);
System\Windows\Controls\ContentPresenter.cs (3)
1004TypeConverter tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content)); 1106TypeConverter tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(content)); 1175(tc = TypeDescriptor.GetConverter(ReflectionHelper.GetReflectionType(item))) != null &&
System\Windows\Documents\DPTypeDescriptorContext.cs (1)
73System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType);
System\Windows\Documents\TextRange.cs (1)
798System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(formattingProperty.PropertyType);
System\Windows\Documents\TextRangeSerialization.cs (1)
1126System.ComponentModel.TypeConverter typeConverter = System.ComponentModel.TypeDescriptor.GetConverter(property.PropertyType);
System\Windows\Markup\BamlReader.cs (1)
1072TypeConverter converter = TypeDescriptor.GetConverter(value.GetType());
System\Windows\Markup\BamlRecords.cs (1)
2544TypeConverter boolConverter = TypeDescriptor.GetConverter(typeof(Boolean));
System\Windows\Markup\ParserContext.cs (2)
99TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(XmlSpace)); 431TypeConverter typeConverter = TypeDescriptor.GetConverter(typeof(System.Xml.XmlSpace));
System\Windows\PropertyPath.cs (1)
783TypeConverter tc = TypeDescriptor.GetConverter(type);
System\Windows\PropertyPathConverter.cs (1)
267TypeConverter converter = TypeDescriptor.GetConverter(type);
ReachFramework (2)
Serialization\Manager\MetroSerializationManager.cs (2)
154return TypeDescriptor.GetConverter(serializedObject.GetType()); 170return TypeDescriptor.GetConverter(serializedObjectType);
System.CodeDom (1)
System\CodeDom\Compiler\CodeDomProvider.cs (1)
134public virtual TypeConverter GetConverter(Type type) => TypeDescriptor.GetConverter(type);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\RangeAttribute.cs (1)
256TypeDescriptor.GetConverter(OperandType);
System.ComponentModel.TypeConverter (5)
System\ComponentModel\AmbientValueAttribute.cs (1)
45static TypeConverter TypeDescriptorGetConverter([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type) => TypeDescriptor.GetConverter(type);
System\ComponentModel\NullableConverter.cs (1)
34UnderlyingTypeConverter = TypeDescriptor.GetConverter(UnderlyingType);
System\ComponentModel\PropertyDescriptor.cs (1)
87_converter ??= TypeDescriptor.GetConverter(PropertyType);
System\ComponentModel\TypeDescriptor.cs (2)
872GetConverter(type); 886return GetConverter(type).ConvertFromInvariantString(stringValue);
System.Configuration.ConfigurationManager (5)
System\Configuration\ApplicationSettingsBase.cs (1)
518TypeConverter tc = TypeDescriptor.GetConverter(propertyInfo.PropertyType);
System\Configuration\ConfigurationProperty.cs (1)
398_converter = TypeDescriptor.GetConverter(Type);
System\Configuration\InfiniteTimeSpanConverter.cs (1)
11private static readonly TypeConverter s_timeSpanConverter = TypeDescriptor.GetConverter(typeof(TimeSpan));
System\Configuration\SettingsPropertyValue.cs (2)
208TypeConverter converter = TypeDescriptor.GetConverter(type); 261TypeConverter converter = TypeDescriptor.GetConverter(type);
System.Data.Common (1)
System\Data\XMLSchema.cs (1)
21return TypeDescriptor.GetConverter(type);
System.Resources.Extensions (3)
System\Resources\Extensions\DeserializingResourceReader.cs (2)
170TypeConverter converter = TypeDescriptor.GetConverter(type); 184TypeConverter converter = TypeDescriptor.GetConverter(type);
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
100TypeConverter converter = TypeDescriptor.GetConverter(primitiveType);
System.Windows.Forms (24)
System\Resources\ResXDataNode.cs (4)
246TypeConverter converter = TypeDescriptor.GetConverter(valueType); 362TypeConverter converter = TypeDescriptor.GetConverter(type); 402&& TypeDescriptor.GetConverter(ResolveTypeName(typeName)) is { } converter 615return TypeDescriptor.GetConverter(typeof(ResXFileRef)).ConvertFrom(_fileRef.ToString());
System\Windows\Forms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
24_innerConverter = TypeDescriptor.GetConverter(baseType);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
100internal static TypeConverter GetIComponentConverter() => TypeDescriptor.GetConverter(typeof(IComponent)); 341TypeConverter subConverter = TypeDescriptor.GetConverter(type);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
912TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 943TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6815converter = TypeDescriptor.GetConverter(type);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
250formattedValueTypeConverter = TypeDescriptor.GetConverter(FormattedValueType); 736valueTypeConverter = TypeDescriptor.GetConverter(ValueType);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
313: TypeDescriptor.GetConverter(DisplayType);
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
95TypeConverter intConverter = TypeDescriptor.GetConverter(typeof(int));
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
91TypeConverter intConverter = TypeDescriptor.GetConverter(typeof(int));
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
545s_stringTypeConverter ??= TypeDescriptor.GetConverter(typeof(string));
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (1)
50percent = (double)TypeDescriptor.GetConverter(typeof(double)).ConvertFrom(context, culture, text)!;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
1106return TypeDescriptor.GetConverter(typeof(Keys)).ConvertToString(context: null, CultureInfo.CurrentUICulture, shortcutKeys);
System\Windows\Forms\DataBinding\Binding.cs (2)
721TypeConverter typeConverter = TypeDescriptor.GetConverter(value is not null ? value.GetType() : typeof(object)); 795TypeConverter typeConverter = TypeDescriptor.GetConverter(value is not null ? value.GetType() : typeof(object));
System\Windows\Forms\Internal\Formatter.cs (4)
142sourceTypeTypeConverter = TypeDescriptor.GetConverter(sourceType); 158targetTypeTypeConverter = TypeDescriptor.GetConverter(targetType); 297TypeConverter targetTypeTypeConverter = TypeDescriptor.GetConverter(targetType); 303TypeConverter sourceTypeTypeConverter = TypeDescriptor.GetConverter(sourceType);
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
76fontSize = (float)TypeDescriptor.GetConverter(typeof(float)).ConvertFromString(null, s_culture, unitTokens.size);
System.Windows.Forms.Design (9)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
89if (!TypeDescriptor.GetConverter(type).GetCreateInstanceSupported())
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.ModifierConverter.cs (1)
57return modifierConverter ?? TypeDescriptor.GetConverter(typeof(MemberAttributes));
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
27_cursorConverter = TypeDescriptor.GetConverter(typeof(Cursor));
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
731TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 816TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
434TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 495TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 626TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
62private TypeConverter KeysConverter => _keysConverter ??= TypeDescriptor.GetConverter(typeof(Keys));
System.Windows.Forms.Design.Tests (6)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (6)
318ValidateResultBitmap(imagePropertyInfo, expected, TypeDescriptor.GetConverter(typeof(Bitmap))); 374ValidateResultBitmap(imagePropertyInfo, expected, TypeDescriptor.GetConverter(typeof(Bitmap))); 399ValidateResultIcon(iconPropertyInfo, expected, TypeDescriptor.GetConverter(typeof(Icon))); 454ValidateResultIcon(iconPropertyInfo, expected, TypeDescriptor.GetConverter(typeof(Icon))); 605TypeConverter converter = TypeDescriptor.GetConverter(typeof(AxHost.State)); 608converter = TypeDescriptor.GetConverter(typeof(AxHost.State));
System.Windows.Forms.Primitives (1)
System\ComponentModel\TypeConverterHelper.cs (1)
43converter = TypeDescriptor.GetConverter(typeof(T));
System.Windows.Forms.Primitives.TestUtilities (1)
System\Windows\Forms\BinaryFormat\BinaryFormatTestExtensions.cs (1)
56converter = TypeDescriptor.GetConverter(type);
System.Windows.Forms.Tests (58)
System\Windows\Forms\DockPaddingEdgesTests.cs (1)
488Assert.IsType<ScrollableControl.DockPaddingEdgesConverter>(TypeDescriptor.GetConverter(typeof(ScrollableControl.DockPaddingEdges)));
System\Windows\Forms\ListViewGroupConverterTests.cs (19)
22TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 49TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 62TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 77TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 107TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 123TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 135TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 162TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 202TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 213TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 220TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 227TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 236TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 243TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 250TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 278TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 289TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 296TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup)); 303TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewGroup));
System\Windows\Forms\ListViewSubItemConverterTests.cs (13)
22TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 32TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 44TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 70TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 81TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 88TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 95TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 104TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 111TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 118TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 126TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 133TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem)); 140TypeConverter converter = TypeDescriptor.GetConverter(typeof(ListViewItem.ListViewSubItem));
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (19)
106TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 122TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 132TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 141TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 148TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 155TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 167TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 174TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 184TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 191TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 200TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 207TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 219TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 278TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 285TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 296TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 307TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 314TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition)); 324TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutPanelCellPosition));
System\Windows\Forms\TableLayoutStyleTests.cs (6)
120TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 138TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 148TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 155TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 162TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle)); 171TypeConverter converter = TypeDescriptor.GetConverter(typeof(TableLayoutStyle));
System.Xaml (2)
System\Xaml\Schema\BuiltInValueConverter.cs (2)
172stdConverter = TypeDescriptor.GetConverter(typeof(Uri)); 196s_Uri = new BuiltInValueConverter<TypeConverter>(stdConverter.GetType(), () => TypeDescriptor.GetConverter(typeof(Uri)));