Show / Hide Table of Contents

Class EqualityHelper

A helper class used to determine equality.

Inheritance
object
EqualityHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public static class EqualityHelper

Methods

View Source

EnumeratorEquals<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.

View Source

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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX