summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended/IEquatableByRef.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Plugins/MonoGame.Extended/source/MonoGame.Extended/IEquatableByRef.cs')
-rw-r--r--Plugins/MonoGame.Extended/source/MonoGame.Extended/IEquatableByRef.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Plugins/MonoGame.Extended/source/MonoGame.Extended/IEquatableByRef.cs b/Plugins/MonoGame.Extended/source/MonoGame.Extended/IEquatableByRef.cs
new file mode 100644
index 0000000..678e510
--- /dev/null
+++ b/Plugins/MonoGame.Extended/source/MonoGame.Extended/IEquatableByRef.cs
@@ -0,0 +1,21 @@
+namespace MonoGame.Extended
+{
+ /// <summary>
+ /// Defines a generalized method that a value type or class implements to create a type-specific method for
+ /// determining equality of instances by reference.
+ /// </summary>
+ /// <typeparam name="T">The type of values or objects to compare.</typeparam>
+ public interface IEquatableByRef<T>
+ {
+ /// <summary>
+ /// Indicates whether the current value or object is equal to another value or object of the same type by
+ /// reference.
+ /// </summary>
+ /// <returns>
+ /// <c>true</c> if the current value or object is equal to the <paramref name="other" /> parameter; otherwise,
+ /// <c>false</c>.
+ /// </returns>
+ /// <param name="other">A value or object to compare with this value or object.</param>
+ bool Equals(ref T other);
+ }
+} \ No newline at end of file