30 references to ConvertToString
Microsoft.AspNetCore.Components (1)
BindConverter.cs (1)
1850
return typeConverter.
ConvertToString
(context: null, culture ?? CultureInfo.CurrentCulture, value);
PresentationFramework (2)
System\Windows\Markup\BamlReader.cs (1)
1076
info.Value = converter.
ConvertToString
(null,
System\Windows\Markup\ParserContext.cs (1)
100
_xmlSpace = (string) typeConverter.
ConvertToString
(null, TypeConverterHelper.InvariantEnglishUS, xmlParserContext.XmlSpace);
System.ComponentModel.TypeConverter (16)
System\ComponentModel\TypeConverter.cs (2)
141
return
ConvertToString
(null, CultureInfo.InvariantCulture, value);
149
return
ConvertToString
(context, CultureInfo.InvariantCulture, value);
System\Drawing\ColorConverter.cs (4)
82
args[nArg++] = intConverter.
ConvertToString
(context, culture, (object)c.A);
90
args[nArg++] = intConverter.
ConvertToString
(context, culture, (object)c.R);
91
args[nArg++] = intConverter.
ConvertToString
(context, culture, (object)c.G);
92
args[nArg++] = intConverter.
ConvertToString
(context, culture, (object)c.B);
System\Drawing\PointConverter.cs (2)
70
string? x = intConverter.
ConvertToString
(context, culture, pt.X);
71
string? y = intConverter.
ConvertToString
(context, culture, pt.Y);
System\Drawing\RectangleConverter.cs (4)
72
string? x = intConverter.
ConvertToString
(context, culture, rect.X);
73
string? y = intConverter.
ConvertToString
(context, culture, rect.Y);
74
string? width = intConverter.
ConvertToString
(context, culture, rect.Width);
75
string? height = intConverter.
ConvertToString
(context, culture, rect.Height);
System\Drawing\SizeConverter.cs (2)
70
string? width = intConverter.
ConvertToString
(context, culture, size.Width);
71
string? height = intConverter.
ConvertToString
(context, culture, size.Height);
System\Drawing\SizeFConverter.cs (2)
68
string? width = floatConverter.
ConvertToString
(context, culture, size.Width);
69
string? height = floatConverter.
ConvertToString
(context, culture, size.Height);
System.Windows.Forms (7)
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (2)
98
intConverter.
ConvertToString
(context, culture, pt.Start),
99
intConverter.
ConvertToString
(context, culture, pt.Length)
System\Windows\Forms\Controls\Labels\LinkConverter.cs (2)
94
intConverter.
ConvertToString
(context, culture, link.Start),
95
intConverter.
ConvertToString
(context, culture, link.Length)
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
109
args[i] = TypeDescriptor.GetConverter(propValue).
ConvertToString
(context, culture, propValue);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
1103
return TypeDescriptor.GetConverter(typeof(Keys)).
ConvertToString
(context: null, CultureInfo.CurrentUICulture, shortcutKeys);
1108
return TypeDescriptor.GetConverterFromRegisteredType(typeof(Keys)).
ConvertToString
(context: null, CultureInfo.CurrentUICulture, shortcutKeys);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
66
string newItem = PropertyDescriptor.Converter.
ConvertToString
(TypeDescriptorContext, CultureInfo.CurrentCulture, standardValue)!;
System.Windows.Forms.Tests (2)
System\Windows\Forms\KeysConverterTests.cs (1)
40
string result = converter.
ConvertToString
(null, CultureInfo.InvariantCulture, keys);
System\Windows\Forms\KeysConverterTests.LocalizationTests.cs (1)
65
string? result = converter.
ConvertToString
(null, targetCulture, key);
System.Xaml (1)
ms\Internal\Markup\TypeConverterValueSerializer.cs (1)
31
return converter.
ConvertToString
(context, TypeConverterHelper.InvariantEnglishUS, value);