FastReferenceComparer Class

Summary

An System.Collections.Generic.IEqualityComparer`1 which uses System.Object.ReferenceEquals(System.Object,System.Object) to be even faster than Animancer.FastComparer. Unfortunately this means it will not work for boxed value types (such as enums).
Assembly
Animancer.dll
Namespace
Animancer
Interfaces
  • IEqualityComparer<Object>
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IEqualityComparer<Object>"] Type["FastReferenceComparer"] class Type type-node

Syntax

public sealed class FastReferenceComparer : IEqualityComparer<Object>

Remarks

This class can be used in Animancer.AnimancerPlayable.StateDictionary.EqualityComparer.

Documentation: Performance

Fields

Name Constant Value Summary
Instance
Singleton instance.
static