s&box docs

public sealed struct Sandbox.WrappedMethod

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

Broader workflow and conceptual references connected to this API.

Methods

Showing 1 methods

public U GetAttribute()

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

Properties

Showing 8 properties

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

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

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

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

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

Is this a static method?

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

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

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

The name of the original method.

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

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

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

Invoke the original method.

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

The name of the type that the method belongs to.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.System
Doc IDT:Sandbox.WrappedMethod

On this page