Class EqualityHelper
A helper class used to determine equality.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public static class EqualityHelper
Methods
View SourceEnumeratorEquals<T>(IEnumerator<T>, IEnumerator<T>)
Determines if the given enumerators are equal.
Declaration
public static bool EnumeratorEquals<T>(IEnumerator<T> a, IEnumerator<T> b)
Parameters
Type | Name | Description |
---|---|---|
IEnumerator<T> | a | The first enumerator. |
IEnumerator<T> | b | The second enumerator. |
Returns
Type | Description |
---|---|
bool | True if the enumerators are equal. |
Type Parameters
Name | Description |
---|---|
T | The enumeration type. |
ObjectEquals(object?, object?, Type?)
Determines if the given objects are equal.
Declaration
public static bool ObjectEquals(object? a, object? b, Type? objectType = null)
Parameters
Type | Name | Description |
---|---|---|
object | a | The first object. |
object | b | The second object. |
Type | objectType | The object type. |
Returns
Type | Description |
---|---|
bool | True if the objects are equal. |
PropertyEquals(object, object, string)
Determines if the given property is equal for the two objects.
Declaration
public static bool PropertyEquals(object a, object b, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
object | a | The first object. |
object | b | The second object. |
string | propertyName | The property name. |
Returns
Type | Description |
---|---|
bool | True if the property values are equal. |