Api Sandbox WrappedMethod<T>
struct

WrappedMethod<T>

public sealed struct WrappedMethod<T>

Provides data about a wrapped method in a CodeGeneratorAttribute callback.

Type Parameters

T The expected return type for the wrapped method.

Properties

Name Type Description
Resume Func<T> Invoke the original method.
Object Object The object whose method is being wrapped. This will be null if we're wrapping a static method.
IsStatic Boolean Is this a static method?
TypeName String The name of the type that the method belongs to.
MethodName String The name of the original method. If static, will return the full name including the type.
MethodIdentity Int32 The Identity of the original method. This is an integer that each MethodDescription has to distinguish itself from other methods of the same class.
GenericArguments Type[] The generic argument types of the method or null if the method is not generic.
Attributes Attribute[] An array of all attributes decorated with CodeGeneratorAttribute on the original method.

Methods

U GetAttribute()

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

Assembly: Sandbox.System Namespace: Sandbox Full Name: Sandbox.WrappedMethod<T>