Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateInstance() [2/2]

override object System.Drawing.PointConverter.CreateInstance ( ITypeDescriptorContext? context,
IDictionary propertyValues )
inlinevirtual

Reimplemented from System.ComponentModel.TypeConverter.

Definition at line 101 of file PointConverter.cs.

102 {
103 if (propertyValues == null)
104 {
105 throw new ArgumentNullException("propertyValues");
106 }
107 object obj = propertyValues["X"];
108 object obj2 = propertyValues["Y"];
109 if (obj == null || obj2 == null || !(obj is int) || !(obj2 is int))
110 {
112 }
113 return new Point((int)obj, (int)obj2);
114 }
static string PropertyValueInvalidEntry
Definition SR.cs:60
Definition SR.cs:7

References System.obj, and System.SR.PropertyValueInvalidEntry.