Search Results for

    Show / Hide Table of Contents
    View Source

    Struct LambdaExpressionCacheKey

    Represents a simple System.Linq.Expressions.LambdaExpression in a form which is suitable for using as a dictionary key by exposing the return type, argument types and expression string form in a single concatenated string.

    Namespace: Umbraco.Cms.Core
    Assembly: Umbraco.Core.dll
    Syntax
    public struct LambdaExpressionCacheKey

    Constructors

    View Source

    LambdaExpressionCacheKey(LambdaExpression)

    Declaration
    public LambdaExpressionCacheKey(LambdaExpression obj)
    Parameters
    Type Name Description
    System.Linq.Expressions.LambdaExpression obj
    View Source

    LambdaExpressionCacheKey(String, String, String[])

    Declaration
    public LambdaExpressionCacheKey(string returnType, string expression, params string[] argTypes)
    Parameters
    Type Name Description
    System.String returnType
    System.String expression
    System.String[] argTypes

    Fields

    View Source

    ArgTypes

    The argument type names of the System.Linq.Expressions.LambdaExpression

    Declaration
    public readonly HashSet<string> ArgTypes
    Field Value
    Type Description
    HashSet<System.String>
    View Source

    ExpressionAsString

    The original string representation of the System.Linq.Expressions.LambdaExpression

    Declaration
    public readonly string ExpressionAsString
    Field Value
    Type Description
    System.String
    View Source

    ReturnType

    The return type of the System.Linq.Expressions.LambdaExpression

    Declaration
    public readonly string ReturnType
    Field Value
    Type Description
    System.String

    Methods

    View Source

    Equals(Object)

    Determines whether the specified System.Object is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The System.Object to compare with this instance.

    Returns
    Type Description
    System.Boolean

    true if the specified System.Object is equal to this instance; otherwise, false.

    View Source

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    View Source

    ToString()

    Returns a System.String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • LambdaExpressionCacheKey(LambdaExpression)
      • LambdaExpressionCacheKey(String, String, String[])
    • Fields
      • ArgTypes
      • ExpressionAsString
      • ReturnType
    • Methods
      • Equals(Object)
      • GetHashCode()
      • ToString()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX