Search Results for

    Show / Hide Table of Contents

    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
    object
    Attribute
    FormulaFunctionAttribute
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.Utils
    Assembly: LemonEdge.Utils.dll
    Syntax
    public class FormulaFunctionAttribute : Attribute

    Constructors

    FormulaFunctionAttribute()

    Declaration
    public FormulaFunctionAttribute()

    Properties

    Description

    A description of what this function does

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    string

    IsAsync

    Indicates if calling this function requires awaiting a task result

    Declaration
    public bool IsAsync { get; set; }
    Property Value
    Type Description
    bool

    Name

    The name of this function

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    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
    int

    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
    string

    Type

    A grouping category for this function

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    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
    Type type

    The type to find all functions that have the FormulaFunctionAttribute marked against them. This includes base types

    Returns
    Type Description
    IEnumerable<FormulaFunctionAttribute>

    A list of all functions against the specified type that have the FormulaFunctionAttribute marked against them

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.