class
CodeGeneratorAttribute
public class CodeGeneratorAttribute : Attribute An attribute that can be added to a custom Attribute class for special code generation behavior. They'll then be applied to methods and properties when they are decorated with that attribute.
Constructors
CodeGeneratorAttribute(CodeGeneratorFlags type, String callbackName, Int32 priority) Perform code generation for a method or property.
type — The type of code generation you want to do.
You will need to specify whether it should apply to instance or static methods and properties using the Instance
and Static flags. callbackName — The name of the callback method. This can be a fully qualified static method callback or a simple callback to invoke
on the target object if the method or property target is not static. priority — Attributes with a higher priority will wrap the target first. The default priority is 0. Properties
| Name | Type | Description |
|---|---|---|
Priority | Int32 | Attributes with a higher priority will wrap the target first. The default priority is 0. |
CallbackName | String | The name of the callback method. This can be a fully qualified static method callback or a simple callback to invoke on the target object if the method or property target is not static. |
Type | CodeGeneratorFlags | The type of code generation you want to do. You will need to specify whether it should apply to instance or static methods and properties using the Instance and Static flags. |