Show / Hide Table of Contents

Class ConstantLoaderComparer

Allows comparing equality between two IConstantLoader based on the type of constant that both can load.

Inheritance
object
ConstantLoaderComparer
Implements
IEqualityComparer<IConstantLoader>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.TypeFactory.dll
Syntax
public class ConstantLoaderComparer : IEqualityComparer<IConstantLoader>

Methods

| Edit this page View Source

Equals(IConstantLoader?, IConstantLoader?)

Compares two IConstantLoader instances.

Declaration
public bool Equals(IConstantLoader? x, IConstantLoader? y)
Parameters
Type Name Description
IConstantLoader x

First object to compare.

IConstantLoader y

Second object to compare.

Returns
Type Description
bool

true if both objects load constants of the same type, false otherwise.

| Edit this page View Source

GetHashCode(IConstantLoader)

Gets the hash code of an IConstantLoader instance that can be used to compare the type of constant that the object is capable of loading.

Declaration
public int GetHashCode(IConstantLoader obj)
Parameters
Type Name Description
IConstantLoader obj

Object from which to obtain the hash code.

Returns
Type Description
int

The hash code of the constant type that the object can load.

Implements

IEqualityComparer<T>

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX