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 SourceLambdaExpressionCacheKey(LambdaExpression)
Declaration
public LambdaExpressionCacheKey(LambdaExpression obj)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.LambdaExpression | obj |
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 SourceArgTypes
The argument type names of the System.Linq.Expressions.LambdaExpression
Declaration
public readonly HashSet<string> ArgTypes
Field Value
Type | Description |
---|---|
HashSet<System.String> |
ExpressionAsString
The original string representation of the System.Linq.Expressions.LambdaExpression
Declaration
public readonly string ExpressionAsString
Field Value
Type | Description |
---|---|
System.String |
ReturnType
The return type of the System.Linq.Expressions.LambdaExpression
Declaration
public readonly string ReturnType
Field Value
Type | Description |
---|---|
System.String |
Methods
View SourceEquals(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 |
|
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. |
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. |