IEquatableByRef.cs 899 B

123456789101112131415161718192021
  1. namespace MonoGame.Extended
  2. {
  3. /// <summary>
  4. /// Defines a generalized method that a value type or class implements to create a type-specific method for
  5. /// determining equality of instances by reference.
  6. /// </summary>
  7. /// <typeparam name="T">The type of values or objects to compare.</typeparam>
  8. public interface IEquatableByRef<T>
  9. {
  10. /// <summary>
  11. /// Indicates whether the current value or object is equal to another value or object of the same type by
  12. /// reference.
  13. /// </summary>
  14. /// <returns>
  15. /// <c>true</c> if the current value or object is equal to the <paramref name="other" /> parameter; otherwise,
  16. /// <c>false</c>.
  17. /// </returns>
  18. /// <param name="other">A value or object to compare with this value or object.</param>
  19. bool Equals(ref T other);
  20. }
  21. }