C# Class Rebel.Framework.LambdaExpressionCacheKey

Represents a simple 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.
Show file Open project: RebelCMS/rebelcmsxu5

Public Properties

Property Type Description
ArgTypes HashSet
ExpressionAsString string
ReturnType string

Public Methods

Method Description
Equals ( object obj ) : bool

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

GetHashCode ( ) : int

Returns a hash code for this instance.

LambdaExpressionCacheKey ( LambdaExpression obj ) : System
LambdaExpressionCacheKey ( string returnType, string expression ) : System
ToString ( ) : string

Returns a System.String that represents this instance.

Method Details

Equals() public method

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
return bool

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

LambdaExpressionCacheKey() public method

public LambdaExpressionCacheKey ( LambdaExpression obj ) : System
obj System.Linq.Expressions.LambdaExpression
return System

LambdaExpressionCacheKey() public method

public LambdaExpressionCacheKey ( string returnType, string expression ) : System
returnType string
expression string
return System

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

Property Details

ArgTypes public property

The argument type names of the LambdaExpression
public HashSet ArgTypes
return HashSet

ExpressionAsString public property

The original string representation of the LambdaExpression
public string ExpressionAsString
return string

ReturnType public property

The return type of the LambdaExpression
public string ReturnType
return string