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

◆ CreateInstance() [2/2]

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

Reimplemented from System.ComponentModel.TypeConverter.

Definition at line 105 of file RectangleConverter.cs.

106 {
107 if (propertyValues == null)
108 {
109 throw new ArgumentNullException("propertyValues");
110 }
111 object obj = propertyValues["X"];
112 object obj2 = propertyValues["Y"];
113 object obj3 = propertyValues["Width"];
114 object obj4 = propertyValues["Height"];
115 if (obj == null || obj2 == null || obj3 == null || obj4 == null || !(obj is int) || !(obj2 is int) || !(obj3 is int) || !(obj4 is int))
116 {
118 }
119 return new Rectangle((int)obj, (int)obj2, (int)obj3, (int)obj4);
120 }
static string PropertyValueInvalidEntry
Definition SR.cs:60
Definition SR.cs:7

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