Class ReflectionExtensions
A set of extensions for System.Type.
Inheritance
System.Object
ReflectionExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Extensions
Assembly: Exiled.API.dll
Syntax
public static class ReflectionExtensions
Methods
| Improve this Doc View SourceCopyProperties(Object, Object)
Copy all properties from the source class to the target one.
Declaration
public static void CopyProperties(this object target, object source)
Parameters
Type | Name | Description |
---|---|---|
System.Object | target | The target object. |
System.Object | source | The source object to copy properties from. |
InvokeStaticEvent(Type, String, Object[])
Invokes a static event.
Declaration
public static void InvokeStaticEvent(this Type type, string eventName, object[] param)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The event type. |
System.String | eventName | The event name. |
System.Object[] | param | The event arguments. |
InvokeStaticMethod(Type, String, Object[])
Invokes a static method.
Declaration
public static void InvokeStaticMethod(this Type type, string methodName, object[] param)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The method type. |
System.String | methodName | The method name. |
System.Object[] | param | The method parameters. |