Class FormulaFunctionAttribute
Describes a function that can be used by the formula engine. The description is used in the formula engine editor for information about all possible callable functions
Inheritance
Inherited Members
Namespace: LemonEdge.Utils
Assembly: Utils.dll
Syntax
public class FormulaFunctionAttribute : Attribute
Properties
Description
A description of what this function does
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsAsync
Indicates if calling this function requires awaiting a task result
Declaration
public bool IsAsync { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
The name of this function
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParamCount
The total count of parameters. Should match the number of bullet point parameters specified in Params
Declaration
public int ParamCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Params
A numbered list of all the parameters to this function along with their explanation
Declaration
public string Params { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
A grouping category for this function
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetFunctions(Type)
Returns all functions that have the FormulaFunctionAttribute marked against them for a given type
Declaration
public static IEnumerable<FormulaFunctionAttribute> GetFunctions(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to find all functions that have the FormulaFunctionAttribute marked against them. This includes base types |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<FormulaFunctionAttribute> | A list of all functions against the specified |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |