Search Results for

    Show / Hide Table of Contents

    Class CompiledLambda

    Creates a compiled lambda to use in place of reflection.

    Inheritance
    object
    CompiledLambda
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Utils
    Assembly: LemonEdge.Utils.dll
    Syntax
    public class CompiledLambda

    Constructors

    CompiledLambda()

    Declaration
    public CompiledLambda()

    Methods

    Create<T>(ConstructorInfo)

    Creates a lambda calling the given type constructor.

    Declaration
    public static T Create<T>(ConstructorInfo ctor) where T : Delegate
    Parameters
    Type Name Description
    ConstructorInfo ctor

    The type constructor.

    Returns
    Type Description
    T

    The associated lambda function.

    Type Parameters
    Name Description
    T

    The lambda signature.

    Create<T>(MethodInfo, params Type[])

    Creates a lambda calling the given method, with optional generic type arguments.

    Declaration
    public static T Create<T>(MethodInfo method, params Type[] typeArguments) where T : Delegate
    Parameters
    Type Name Description
    MethodInfo method

    The method call.

    Type[] typeArguments

    The type arguments.

    Returns
    Type Description
    T

    The associated lambda function.

    Type Parameters
    Name Description
    T

    The lambda signature.

    Create<T>(Type, params Type[])

    Creates a lambda calling the given type constructor.

    Declaration
    public static T Create<T>(Type type, params Type[] typeArguments) where T : Delegate
    Parameters
    Type Name Description
    Type type

    The concrete type.

    Type[] typeArguments

    The constructor arguments.

    Returns
    Type Description
    T

    The associated lambda function.

    Type Parameters
    Name Description
    T

    The lambda signature.

    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.