Class StructuralSwitchFlowComparer
An equality comparer that for structural switch flow equality.
Implements
Inherited Members
Namespace: Flame.Compiler.Flow
Assembly: Flame.Compiler.dll
Syntax
public sealed class StructuralSwitchFlowComparer : IEqualityComparer<SwitchFlow>
Methods
| Edit this page View SourceEquals(SwitchFlow, SwitchFlow)
Tests if two switch flows are structurally equal.
Declaration
public bool Equals(SwitchFlow x, SwitchFlow y)
Parameters
| Type | Name | Description |
|---|---|---|
| SwitchFlow | x | A first switch flow. |
| SwitchFlow | y | A second switch flow. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetHashCode(SwitchFlow)
Computes the hash code for a particular switch flow.
Declaration
public int GetHashCode(SwitchFlow obj)
Parameters
| Type | Name | Description |
|---|---|---|
| SwitchFlow | obj | The switch flow to compute a hash code for. |
Returns
| Type | Description |
|---|---|
| int | A hash code. |