Class ExpressionSlimEqualityComparator
Base class for expression equality comparer implementations. Default behavior matches trees in a structural fashion.
Inheritance
Implements
Namespace: System.Linq.CompilerServices.Bonsai
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public class ExpressionSlimEqualityComparator : Object, IEqualityComparer<ExpressionSlim>, IEqualityComparer<MemberBindingSlim>, IEqualityComparer<ElementInitSlim>, IEqualityComparer<CatchBlockSlim>, IEqualityComparer<SwitchCaseSlim>
Constructors
ExpressionSlimEqualityComparator()
Creates a new expression equality comparator with default comparers for types, members, objects, and call site binders.
Declaration
public ExpressionSlimEqualityComparator()
ExpressionSlimEqualityComparator(IEqualityComparer<TypeSlim>, IEqualityComparer<MemberInfoSlim>, IEqualityComparer<ObjectSlim>, IEqualityComparer<CallSiteBinder>)
Creates a new expression equality comparator with the specified comparers for types, members, and objects.
Declaration
public ExpressionSlimEqualityComparator(IEqualityComparer<TypeSlim> typeComparer, IEqualityComparer<MemberInfoSlim> memberInfoComparer, IEqualityComparer<ObjectSlim> constantExpressionValueComparer, IEqualityComparer<CallSiteBinder> callSiteBinderComparer)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEqualityComparer<TypeSlim> | typeComparer | Comparer for types. |
System.Collections.Generic.IEqualityComparer<MemberInfoSlim> | memberInfoComparer | Comparer for members. |
System.Collections.Generic.IEqualityComparer<System.ObjectSlim> | constantExpressionValueComparer | Comparer for objects found in constant expression nodes. |
System.Collections.Generic.IEqualityComparer<System.Runtime.CompilerServices.CallSiteBinder> | callSiteBinderComparer | Comparer for callsite binders. |
Methods
Equals(ReadOnlyCollection<CatchBlockSlim>, ReadOnlyCollection<CatchBlockSlim>)
Checks whether the two given catch block sequences are equal.
Declaration
protected bool Equals(ReadOnlyCollection<CatchBlockSlim> x, ReadOnlyCollection<CatchBlockSlim> y)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<CatchBlockSlim> | x | First catch block sequence. |
System.Collections.ObjectModel.ReadOnlyCollection<CatchBlockSlim> | y | Second catch block sequence. |
Returns
Type | Description |
---|---|
System.Boolean | true if both catch block sequences are equal; otherwise, false. |
Equals(ReadOnlyCollection<ElementInitSlim>, ReadOnlyCollection<ElementInitSlim>)
Checks whether the two given element initializer sequences are equal.
Declaration
protected bool Equals(ReadOnlyCollection<ElementInitSlim> x, ReadOnlyCollection<ElementInitSlim> y)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ElementInitSlim> | x | First element initializer sequence. |
System.Collections.ObjectModel.ReadOnlyCollection<ElementInitSlim> | y | Second element initializer sequence. |
Returns
Type | Description |
---|---|
System.Boolean | true if both element initializer sequences are equal; otherwise, false. |
Equals(ReadOnlyCollection<ExpressionSlim>, ReadOnlyCollection<ExpressionSlim>)
Checks whether the two given expression sequences are equal.
Declaration
protected bool Equals(ReadOnlyCollection<ExpressionSlim> x, ReadOnlyCollection<ExpressionSlim> y)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ExpressionSlim> | x | First expression sequence. |
System.Collections.ObjectModel.ReadOnlyCollection<ExpressionSlim> | y | Second expression sequence. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expression sequences are equal; otherwise, false. |
Equals(ReadOnlyCollection<MemberBindingSlim>, ReadOnlyCollection<MemberBindingSlim>)
Checks whether the two given member binding sequences are equal.
Declaration
protected bool Equals(ReadOnlyCollection<MemberBindingSlim> x, ReadOnlyCollection<MemberBindingSlim> y)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<MemberBindingSlim> | x | First member binding sequence. |
System.Collections.ObjectModel.ReadOnlyCollection<MemberBindingSlim> | y | Second member binding sequence. |
Returns
Type | Description |
---|---|
System.Boolean | true if both member binding sequences are equal; otherwise, false. |
Equals(ReadOnlyCollection<ParameterExpressionSlim>, ReadOnlyCollection<ParameterExpressionSlim>)
Checks whether the two given parameter expression sequences are equal.
Declaration
protected bool Equals(ReadOnlyCollection<ParameterExpressionSlim> x, ReadOnlyCollection<ParameterExpressionSlim> y)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ParameterExpressionSlim> | x | First parameter expression sequence. |
System.Collections.ObjectModel.ReadOnlyCollection<ParameterExpressionSlim> | y | Second parameter expression sequence. |
Returns
Type | Description |
---|---|
System.Boolean | true if both parameter expression sequences are equal; otherwise, false. |
Equals(ReadOnlyCollection<SwitchCaseSlim>, ReadOnlyCollection<SwitchCaseSlim>)
Checks whether the two given switch case sequences are equal.
Declaration
protected bool Equals(ReadOnlyCollection<SwitchCaseSlim> x, ReadOnlyCollection<SwitchCaseSlim> y)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<SwitchCaseSlim> | x | First switch case sequence. |
System.Collections.ObjectModel.ReadOnlyCollection<SwitchCaseSlim> | y | Second switch case sequence. |
Returns
Type | Description |
---|---|
System.Boolean | true if both switch case sequences are equal; otherwise, false. |
Equals(ReadOnlyCollection<MemberInfoSlim>, ReadOnlyCollection<MemberInfoSlim>)
Checks whether the two given member sequences are equal.
Declaration
protected bool Equals(ReadOnlyCollection<MemberInfoSlim> x, ReadOnlyCollection<MemberInfoSlim> y)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<MemberInfoSlim> | x | First member sequence. |
System.Collections.ObjectModel.ReadOnlyCollection<MemberInfoSlim> | y | Second member sequence. |
Returns
Type | Description |
---|---|
System.Boolean | true if both member sequences are equal; otherwise, false. |
Equals(CatchBlockSlim, CatchBlockSlim)
Checks whether the two given catch blocks are equal.
Declaration
public virtual bool Equals(CatchBlockSlim x, CatchBlockSlim y)
Parameters
Type | Name | Description |
---|---|---|
CatchBlockSlim | x | First catch block. |
CatchBlockSlim | y | Second catch block. |
Returns
Type | Description |
---|---|
System.Boolean | true if both catch blocks are equal; otherwise, false. |
Equals(ElementInitSlim, ElementInitSlim)
Checks whether the two given element initializers are equal.
Declaration
public virtual bool Equals(ElementInitSlim x, ElementInitSlim y)
Parameters
Type | Name | Description |
---|---|---|
ElementInitSlim | x | First element initializer. |
ElementInitSlim | y | Second element initializer. |
Returns
Type | Description |
---|---|
System.Boolean | true if both element initializers are equal; otherwise, false. |
Equals(ExpressionSlim, ExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
public virtual bool Equals(ExpressionSlim x, ExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | x | First expression. |
ExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
Equals(MemberBindingSlim, MemberBindingSlim)
Checks whether the two given member binders are equal.
Declaration
public virtual bool Equals(MemberBindingSlim x, MemberBindingSlim y)
Parameters
Type | Name | Description |
---|---|---|
MemberBindingSlim | x | First member binder. |
MemberBindingSlim | y | Second member binder. |
Returns
Type | Description |
---|---|
System.Boolean | true if both member binders are equal; otherwise, false. |
Equals(SwitchCaseSlim, SwitchCaseSlim)
Checks whether the two given switch cases are equal.
Declaration
public virtual bool Equals(SwitchCaseSlim x, SwitchCaseSlim y)
Parameters
Type | Name | Description |
---|---|---|
SwitchCaseSlim | x | First switch cases. |
SwitchCaseSlim | y | Second switch cases. |
Returns
Type | Description |
---|---|
System.Boolean | true if both switch cases are equal; otherwise, false. |
Equals(MemberInfoSlim, MemberInfoSlim)
Checks whether the two given members are equal.
Declaration
protected bool Equals(MemberInfoSlim x, MemberInfoSlim y)
Parameters
Type | Name | Description |
---|---|---|
MemberInfoSlim | x | First member. |
MemberInfoSlim | y | Second member. |
Returns
Type | Description |
---|---|
System.Boolean | true if both members are equal; otherwise, false. |
Equals(TypeSlim, TypeSlim)
Checks whether the two given types are equal.
Declaration
protected bool Equals(TypeSlim x, TypeSlim y)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | x | First type. |
TypeSlim | y | Second type. |
Returns
Type | Description |
---|---|
System.Boolean | true if both types are equal; otherwise, false. |
Equals(CallSiteBinder, CallSiteBinder)
Checks whether the two given call site binders are equal.
Declaration
protected bool Equals(CallSiteBinder x, CallSiteBinder y)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.CompilerServices.CallSiteBinder | x | First call site binder. |
System.Runtime.CompilerServices.CallSiteBinder | y | Second call site binder. |
Returns
Type | Description |
---|---|
System.Boolean | true if both call site binders are equal; otherwise, false. |
EqualsBinary(BinaryExpressionSlim, BinaryExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsBinary(BinaryExpressionSlim x, BinaryExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
BinaryExpressionSlim | x | First expression. |
BinaryExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsBlock(BlockExpressionSlim, BlockExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsBlock(BlockExpressionSlim x, BlockExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
BlockExpressionSlim | x | First expression. |
BlockExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsConditional(ConditionalExpressionSlim, ConditionalExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsConditional(ConditionalExpressionSlim x, ConditionalExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
ConditionalExpressionSlim | x | First expression. |
ConditionalExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsConstant(ConstantExpressionSlim, ConstantExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsConstant(ConstantExpressionSlim x, ConstantExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
ConstantExpressionSlim | x | First expression. |
ConstantExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsDefault(DefaultExpressionSlim, DefaultExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsDefault(DefaultExpressionSlim x, DefaultExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
DefaultExpressionSlim | x | First expression. |
DefaultExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsExtension(ExpressionSlim, ExpressionSlim)
Checks whether the two given extension expressions are equal.
Declaration
protected virtual bool EqualsExtension(ExpressionSlim x, ExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | x | First extension expression. |
ExpressionSlim | y | Second extension expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both extension expressions are equal; otherwise, false. |
EqualsGlobalParameter(ParameterExpressionSlim, ParameterExpressionSlim)
Checks whether the two given global parameter expressions are equal.
Declaration
protected virtual bool EqualsGlobalParameter(ParameterExpressionSlim x, ParameterExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
ParameterExpressionSlim | x | First expression. |
ParameterExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsGoto(GotoExpressionSlim, GotoExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsGoto(GotoExpressionSlim x, GotoExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
GotoExpressionSlim | x | First expression. |
GotoExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsIndex(IndexExpressionSlim, IndexExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsIndex(IndexExpressionSlim x, IndexExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
IndexExpressionSlim | x | First expression. |
IndexExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsInvocation(InvocationExpressionSlim, InvocationExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsInvocation(InvocationExpressionSlim x, InvocationExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
InvocationExpressionSlim | x | First expression. |
InvocationExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsLabel(LabelExpressionSlim, LabelExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsLabel(LabelExpressionSlim x, LabelExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
LabelExpressionSlim | x | First expression. |
LabelExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsLambda(LambdaExpressionSlim, LambdaExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsLambda(LambdaExpressionSlim x, LambdaExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
LambdaExpressionSlim | x | First expression. |
LambdaExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsListInit(ListInitExpressionSlim, ListInitExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsListInit(ListInitExpressionSlim x, ListInitExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
ListInitExpressionSlim | x | First expression. |
ListInitExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsLoop(LoopExpressionSlim, LoopExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsLoop(LoopExpressionSlim x, LoopExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
LoopExpressionSlim | x | First expression. |
LoopExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsMember(MemberExpressionSlim, MemberExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsMember(MemberExpressionSlim x, MemberExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
MemberExpressionSlim | x | First expression. |
MemberExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsMemberAssignment(MemberAssignmentSlim, MemberAssignmentSlim)
Checks whether the two given member assignments are equal.
Declaration
protected virtual bool EqualsMemberAssignment(MemberAssignmentSlim x, MemberAssignmentSlim y)
Parameters
Type | Name | Description |
---|---|---|
MemberAssignmentSlim | x | First member assignment. |
MemberAssignmentSlim | y | Second member assignment. |
Returns
Type | Description |
---|---|
System.Boolean | true if both member assignments are equal; otherwise, false. |
EqualsMemberInit(MemberInitExpressionSlim, MemberInitExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsMemberInit(MemberInitExpressionSlim x, MemberInitExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
MemberInitExpressionSlim | x | First expression. |
MemberInitExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsMemberListBinding(MemberListBindingSlim, MemberListBindingSlim)
Checks whether the two given member list bindings are equal.
Declaration
protected virtual bool EqualsMemberListBinding(MemberListBindingSlim x, MemberListBindingSlim y)
Parameters
Type | Name | Description |
---|---|---|
MemberListBindingSlim | x | First member list binding. |
MemberListBindingSlim | y | Second member list binding. |
Returns
Type | Description |
---|---|
System.Boolean | true if both member list bindings are equal; otherwise, false. |
EqualsMemberMemberBinding(MemberMemberBindingSlim, MemberMemberBindingSlim)
Checks whether the two given nested member bindings are equal.
Declaration
protected virtual bool EqualsMemberMemberBinding(MemberMemberBindingSlim x, MemberMemberBindingSlim y)
Parameters
Type | Name | Description |
---|---|---|
MemberMemberBindingSlim | x | First nested member binding. |
MemberMemberBindingSlim | y | Second nested member binding. |
Returns
Type | Description |
---|---|
System.Boolean | true if both nested member bindings are equal; otherwise, false. |
EqualsMethodCall(MethodCallExpressionSlim, MethodCallExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsMethodCall(MethodCallExpressionSlim x, MethodCallExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
MethodCallExpressionSlim | x | First expression. |
MethodCallExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsNew(NewExpressionSlim, NewExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsNew(NewExpressionSlim x, NewExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
NewExpressionSlim | x | First expression. |
NewExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsNewArray(NewArrayExpressionSlim, NewArrayExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsNewArray(NewArrayExpressionSlim x, NewArrayExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
NewArrayExpressionSlim | x | First expression. |
NewArrayExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsParameter(ParameterExpressionSlim, ParameterExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsParameter(ParameterExpressionSlim x, ParameterExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
ParameterExpressionSlim | x | First expression. |
ParameterExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsPop()
Pop parameters from the expression environments for equality checks.
Declaration
protected void EqualsPop()
EqualsPush(IReadOnlyList<ParameterExpressionSlim>, IReadOnlyList<ParameterExpressionSlim>)
Push parameters into the expression environments for equality checks.
Declaration
protected void EqualsPush(IReadOnlyList<ParameterExpressionSlim> x, IReadOnlyList<ParameterExpressionSlim> y)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IReadOnlyList<ParameterExpressionSlim> | x | The left parameters. |
System.Collections.Generic.IReadOnlyList<ParameterExpressionSlim> | y | The right parameters. |
EqualsSwitch(SwitchExpressionSlim, SwitchExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsSwitch(SwitchExpressionSlim x, SwitchExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
SwitchExpressionSlim | x | First expression. |
SwitchExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsTry(TryExpressionSlim, TryExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsTry(TryExpressionSlim x, TryExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
TryExpressionSlim | x | First expression. |
TryExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsTypeBinary(TypeBinaryExpressionSlim, TypeBinaryExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsTypeBinary(TypeBinaryExpressionSlim x, TypeBinaryExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
TypeBinaryExpressionSlim | x | First expression. |
TypeBinaryExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
EqualsUnary(UnaryExpressionSlim, UnaryExpressionSlim)
Checks whether the two given expressions are equal.
Declaration
protected virtual bool EqualsUnary(UnaryExpressionSlim x, UnaryExpressionSlim y)
Parameters
Type | Name | Description |
---|---|---|
UnaryExpressionSlim | x | First expression. |
UnaryExpressionSlim | y | Second expression. |
Returns
Type | Description |
---|---|
System.Boolean | true if both expressions are equal; otherwise, false. |
GetHashCode(ReadOnlyCollection<CatchBlockSlim>)
Gets a hash code for the given catch block sequence.
Declaration
protected int GetHashCode(ReadOnlyCollection<CatchBlockSlim> obj)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<CatchBlockSlim> | obj | Catch block sequence to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given catch block sequence. |
GetHashCode(ReadOnlyCollection<ElementInitSlim>)
Gets a hash code for the given element initializer sequence.
Declaration
protected int GetHashCode(ReadOnlyCollection<ElementInitSlim> obj)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ElementInitSlim> | obj | Member sequence to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given element initializer sequence. |
GetHashCode(ReadOnlyCollection<ExpressionSlim>)
Gets a hash code for the given expression sequence.
Declaration
protected int GetHashCode(ReadOnlyCollection<ExpressionSlim> obj)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ExpressionSlim> | obj | Expression sequence to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression sequence. |
GetHashCode(ReadOnlyCollection<MemberBindingSlim>)
Gets a hash code for the given member binding sequence.
Declaration
protected int GetHashCode(ReadOnlyCollection<MemberBindingSlim> obj)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<MemberBindingSlim> | obj | Member binding sequence to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given member binding sequence. |
GetHashCode(ReadOnlyCollection<ParameterExpressionSlim>)
Gets a hash code for the given parameter expression sequence.
Declaration
protected int GetHashCode(ReadOnlyCollection<ParameterExpressionSlim> obj)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<ParameterExpressionSlim> | obj | Parameter expression sequence to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given parameter expression sequence. |
GetHashCode(ReadOnlyCollection<SwitchCaseSlim>)
Gets a hash code for the given switch case sequence.
Declaration
protected int GetHashCode(ReadOnlyCollection<SwitchCaseSlim> obj)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<SwitchCaseSlim> | obj | Switch case sequence to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given switch case sequence. |
GetHashCode(ReadOnlyCollection<MemberInfoSlim>)
Gets a hash code for the given member sequence.
Declaration
protected int GetHashCode(ReadOnlyCollection<MemberInfoSlim> obj)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.ObjectModel.ReadOnlyCollection<MemberInfoSlim> | obj | Member sequence to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given member sequence. |
GetHashCode(CatchBlockSlim)
Gets a hash code for the given catch block.
Declaration
public virtual int GetHashCode(CatchBlockSlim obj)
Parameters
Type | Name | Description |
---|---|---|
CatchBlockSlim | obj | Catch block to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given catch block. |
GetHashCode(ElementInitSlim)
Gets a hash code for the given element initializer.
Declaration
public virtual int GetHashCode(ElementInitSlim obj)
Parameters
Type | Name | Description |
---|---|---|
ElementInitSlim | obj | Element initializer to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given element initializer. |
GetHashCode(ExpressionSlim)
Gets a hash code for the given expression.
Declaration
public virtual int GetHashCode(ExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCode(MemberBindingSlim)
Gets a hash code for the given member binding.
Declaration
public virtual int GetHashCode(MemberBindingSlim obj)
Parameters
Type | Name | Description |
---|---|---|
MemberBindingSlim | obj | Member binding to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given member binding. |
GetHashCode(SwitchCaseSlim)
Gets a hash code for the given switch case.
Declaration
public virtual int GetHashCode(SwitchCaseSlim obj)
Parameters
Type | Name | Description |
---|---|---|
SwitchCaseSlim | obj | Switch case to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given switch case. |
GetHashCode(MemberInfoSlim)
Gets a hash code for the given member.
Declaration
protected int GetHashCode(MemberInfoSlim obj)
Parameters
Type | Name | Description |
---|---|---|
MemberInfoSlim | obj | Member to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given member. |
GetHashCode(TypeSlim)
Gets a hash code for the given type.
Declaration
protected int GetHashCode(TypeSlim obj)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | obj | Type to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given type. |
GetHashCode(CallSiteBinder)
Gets a hash code for the given call site binder.
Declaration
protected int GetHashCode(CallSiteBinder obj)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.CompilerServices.CallSiteBinder | obj | Call site binder to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given call site binder. |
GetHashCodeBinary(BinaryExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeBinary(BinaryExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
BinaryExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeBlock(BlockExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeBlock(BlockExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
BlockExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeConditional(ConditionalExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeConditional(ConditionalExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
ConditionalExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeConstant(ConstantExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeConstant(ConstantExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
ConstantExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeDefault(DefaultExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeDefault(DefaultExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
DefaultExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeExtension(ExpressionSlim)
Gets a hash code for the given extension expression.
Declaration
protected virtual int GetHashCodeExtension(ExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | obj | Extension expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given extension expression. |
GetHashCodeGlobalParameter(ParameterExpressionSlim)
Gets a hash code for a global parameter.
Declaration
protected virtual int GetHashCodeGlobalParameter(ParameterExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
ParameterExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeGoto(GotoExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeGoto(GotoExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
GotoExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeIndex(IndexExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeIndex(IndexExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
IndexExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeInvocation(InvocationExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeInvocation(InvocationExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
InvocationExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeLabel(LabelExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeLabel(LabelExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
LabelExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeLambda(LambdaExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeLambda(LambdaExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
LambdaExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeListInit(ListInitExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeListInit(ListInitExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
ListInitExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeLoop(LoopExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeLoop(LoopExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
LoopExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeMember(MemberExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeMember(MemberExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
MemberExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeMemberAssignment(MemberAssignmentSlim)
Gets a hash code for the given member assignment.
Declaration
protected virtual int GetHashCodeMemberAssignment(MemberAssignmentSlim obj)
Parameters
Type | Name | Description |
---|---|---|
MemberAssignmentSlim | obj | Member assignment to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given member assignment. |
GetHashCodeMemberInit(MemberInitExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeMemberInit(MemberInitExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
MemberInitExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeMemberListBinding(MemberListBindingSlim)
Gets a hash code for the given member list binding.
Declaration
protected virtual int GetHashCodeMemberListBinding(MemberListBindingSlim obj)
Parameters
Type | Name | Description |
---|---|---|
MemberListBindingSlim | obj | Member list binding to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given member list binding. |
GetHashCodeMemberMemberBinding(MemberMemberBindingSlim)
Gets a hash code for the given deep member binding.
Declaration
protected virtual int GetHashCodeMemberMemberBinding(MemberMemberBindingSlim obj)
Parameters
Type | Name | Description |
---|---|---|
MemberMemberBindingSlim | obj | Deep member binding to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given deep member binding. |
GetHashCodeMethodCall(MethodCallExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeMethodCall(MethodCallExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
MethodCallExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeNew(NewExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeNew(NewExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
NewExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeNewArray(NewArrayExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeNewArray(NewArrayExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
NewArrayExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeParameter(ParameterExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeParameter(ParameterExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
ParameterExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodePop()
Pop parameters from the expression environments for hash code computation.
Declaration
protected void GetHashCodePop()
GetHashCodePush(IReadOnlyList<ParameterExpressionSlim>)
Push parameters into the expression environment for hash code computation.
Declaration
protected void GetHashCodePush(IReadOnlyList<ParameterExpressionSlim> parameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IReadOnlyList<ParameterExpressionSlim> | parameters | The parameters. |
GetHashCodeSwitch(SwitchExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeSwitch(SwitchExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
SwitchExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeTry(TryExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeTry(TryExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
TryExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeTypeBinary(TypeBinaryExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeTypeBinary(TypeBinaryExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
TypeBinaryExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
GetHashCodeUnary(UnaryExpressionSlim)
Gets a hash code for the given expression.
Declaration
protected virtual int GetHashCodeUnary(UnaryExpressionSlim obj)
Parameters
Type | Name | Description |
---|---|---|
UnaryExpressionSlim | obj | Expression to compute a hash code for. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code for the given expression. |
Hash(Int32, Int32)
Helper method to create a hash code from the specified values.
Declaration
protected static int Hash(int a, int b)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | a | First value. |
System.Int32 | b | Second value. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code composed from the specified values. |
Hash(Int32, Int32, Int32)
Helper method to create a hash code from the specified values.
Declaration
protected static int Hash(int a, int b, int c)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | a | First value. |
System.Int32 | b | Second value. |
System.Int32 | c | Third value. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code composed from the specified values. |
Hash(Int32, Int32, Int32, Int32)
Helper method to create a hash code from the specified values.
Declaration
protected static int Hash(int a, int b, int c, int d)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | a | First value. |
System.Int32 | b | Second value. |
System.Int32 | c | Third value. |
System.Int32 | d | Fourth value. |
Returns
Type | Description |
---|---|
System.Int32 | Hash code composed from the specified values. |