WrappedMethodclass

Provides data about a wrapped method in a `Sandbox.CodeGeneratorAttribute` callback.

objectWrappedMethod
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public sealed struct Sandbox.WrappedMethod

Methods1

Showing 1 methods

public U GetAttribute()PUBLIC

Get the attribute of type, or null if it doesn't exist

Returns:U

Properties8

Showing 8 properties

public System.Attribute[] Sandbox.WrappedMethod.Attributes { get; set; }PUBLICGETSET

An array of all attributes decorated with `Sandbox.CodeGeneratorAttribute` on the original method.

Returns:Attribute[]

public System.Type[] Sandbox.WrappedMethod.GenericArguments { get; set; }PUBLICGETSET

The generic argument types of the method or null if the method is not generic.

Returns:Type[]

public bool Sandbox.WrappedMethod.IsStatic { get; set; }PUBLICGETSET

Is this a static method?

Returns:bool

public int Sandbox.WrappedMethod.MethodIdentity { get; set; }PUBLICGETSET

The Identity of the original method. This is an integer that each MethodDescription has to distinguish itself from other methods of the same class.

Returns:int

public string Sandbox.WrappedMethod.MethodName { get; set; }PUBLICGETSET

The name of the original method.

Returns:string

public object Sandbox.WrappedMethod.Object { get; set; }PUBLICGETSET

The object whose method is being wrapped. This will be null if we're wrapping a static method.

Returns:object

public System.Action Sandbox.WrappedMethod.Resume { get; set; }PUBLICGETSET

Invoke the original method.

Returns:Action

public string Sandbox.WrappedMethod.TypeName { get; set; }PUBLICGETSET

The name of the type that the method belongs to.

Returns:string

On this page