# Sandbox.WrappedMethod

Provides data about a wrapped method in a [Sandbox.CodeGeneratorAttribute](/api/Sandbox.CodeGeneratorAttribute) callback.

- Kind: struct
- Namespace: `Sandbox`
- Assembly: `Sandbox.System`
- Modifiers: sealed

## Properties

- [`Attributes`](/api/Sandbox.WrappedMethod/Attributes): An array of all attributes decorated with [Sandbox.CodeGeneratorAttribute](/api/Sandbox.CodeGeneratorAttribute) on the original method.
- [`GenericArguments`](/api/Sandbox.WrappedMethod/GenericArguments): The generic argument types of the method or null if the method is not generic.
- [`IsStatic`](/api/Sandbox.WrappedMethod/IsStatic): Is this a static method?
- [`MethodIdentity`](/api/Sandbox.WrappedMethod/MethodIdentity): The Identity of the original method. This is an integer that each MethodDescription has to distinguish itself from other methods of the same class.
- [`MethodName`](/api/Sandbox.WrappedMethod/MethodName): The name of the original method.
- [`Object`](/api/Sandbox.WrappedMethod/Object): The object whose method is being wrapped. This will be null if we're wrapping a static method.
- [`Resume`](/api/Sandbox.WrappedMethod/Resume): Invoke the original method.
- [`TypeName`](/api/Sandbox.WrappedMethod/TypeName): The name of the type that the method belongs to.

## Methods

- [`GetAttribute`](/api/Sandbox.WrappedMethod/GetAttribute): Get the attribute of type, or null if it doesn't exist
