class CodeGeneratorAttribute

in global :: Sandbox

An attribute that can be added to a custom class for special code generation behavior. They'll then be applied to methods and properties when they are decorated with that attribute.


public int Priority { get; set; }

Attributes with a higher priority will wrap the target first. The default priority is 0.

public string CallbackName { get; set; }

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.

public CodeGeneratorFlags Type { get; set; }

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 and flags.

public CodeGeneratorAttribute( CodeGeneratorFlags type, string callbackName, int priority = 0 )

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 and 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.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public object TypeId { get; }

😔 No documentation found.

public bool Match( object obj )

😔 No documentation found.

public bool IsDefaultAttribute( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.