Summary
Generates a script property alias from the specified method.
The provided method must be an extension method for
ICakeContext
and it must be decorated with the CakePropertyAliasAttribute.
- Namespace
- Cake
.Core .Scripting .CodeGen - Containing Type
- Property
Alias Generator
Syntax
public static string Generate(MethodInfo method)
Parameters
| Name | Type | Description |
|---|---|---|
| method | MethodInfo | The method to generate the code for. |
Return Value
| Type | Description |
|---|---|
| string | The generated code. |
