PropertyAliasGenerator.

Generate(MethodInfo, string) Method

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.

Syntax

public static string Generate(MethodInfo method, out string hash)

Parameters

Name Type Description
method MethodInfo The method to generate the code for.
hash string The hash of property signature.

Return Value

Type Description
string The generated code.