MethodAliasGenerator.

Generate(MethodInfo, string) Method

Summary

Generates a script method alias from the specified method. The provided method must be an extension method for ICakeContext and it must be decorated with the CakeMethodAliasAttribute.

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 method signature.

Return Value

Type Description
string The generated code.