Reimplemented from System.ComponentModel.TypeConverter.
Definition at line 32 of file SizeConverter.cs.
33 {
35 {
36 string text2 =
text.Trim();
37 if (text2.Length == 0)
38 {
39 return null;
40 }
42 {
44 }
45 char separator =
culture.TextInfo.ListSeparator[0];
46 string[]
array = text2.Split(separator);
47 int[] array2 =
new int[
array.Length];
49 for (
int i = 0;
i < array2.Length;
i++)
50 {
52 }
53 if (array2.Length != 2)
54 {
56 }
57 return new Size(array2[0], array2[1]);
58 }
60 }
object? ConvertFromString(string text)
static TypeConverter GetConverterTrimUnsafe([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
static CultureInfo CurrentCulture
static string Format(string resourceFormat, object p1)
static string TextParseFailedFormat
References System.array, System.ComponentModel.TypeConverter.ConvertFromString(), System.culture, System.Globalization.CultureInfo.CurrentCulture, System.SR.Format(), System.ComponentModel.TypeDescriptor.GetConverterTrimUnsafe(), System.text, System.SR.TextParseFailedFormat, and System.value.