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

◆ GetTypeFromName()

Type? System.ComponentModel.PropertyDescriptor.GetTypeFromName ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] string? typeName)
inlineprotectedinherited

Definition at line 245 of file PropertyDescriptor.cs.

246 {
247 if (typeName == null || typeName.Length == 0)
248 {
249 return null;
250 }
251 Type type = Type.GetType(typeName);
252 Type type2 = null;
253 if (ComponentType != null && (type == null || ComponentType.Assembly.FullName.Equals(type.Assembly.FullName)))
254 {
255 int num = typeName.IndexOf(',');
256 if (num != -1)
257 {
258 typeName = typeName.Substring(0, num);
259 }
260 type2 = ComponentType.Assembly.GetType(typeName);
261 }
262 return type2 ?? type;
263 }
virtual ? string FullName
Definition Assembly.cs:74
virtual ? Type GetType(string name)
Definition Assembly.cs:305
Assembly Assembly
Definition Type.cs:49

References System.Type.Assembly, System.ComponentModel.PropertyDescriptor.ComponentType, System.Reflection.Assembly.FullName, System.Reflection.Assembly.GetType(), System.Type.GetType(), and System.type.

Referenced by System.ComponentModel.PropertyDescriptor.GetEditor().