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

◆ ReflectEventDescriptor() [1/3]

System.ComponentModel.ReflectEventDescriptor.ReflectEventDescriptor ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentClass,
string name,
Type type,
Attribute[] attributes )
inline

Definition at line 36 of file ReflectEventDescriptor.cs.

37 : base(name, attributes)
38 {
39 if (componentClass == null)
40 {
41 throw new ArgumentException(System.SR.Format(System.SR.InvalidNullArgument, "componentClass"));
42 }
43 if (type == null || !typeof(Delegate).IsAssignableFrom(type))
44 {
46 }
47 _componentClass = componentClass;
48 _type = type;
49 }
static string InvalidNullArgument
Definition SR.cs:86
static string ErrorInvalidEventType
Definition SR.cs:28
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.ComponentModel.ReflectEventDescriptor._componentClass, System.ComponentModel.ReflectEventDescriptor._type, System.SR.ErrorInvalidEventType, System.SR.Format(), System.SR.InvalidNullArgument, and System.type.