IEquatable - KurbanismailovZaur/Extensions GitHub Wiki
On this page you can familiarize yourself with methods for extending the IEquatable interface.
EqualsToAll
Determines equality to all objects from the specified list.
var values = new int[] { 4, 1, 7, 2, 9 };
var x = Random.Range(0, 10);
if (x.EqualsToAll(values)) { ... }
EqualsToAny
Determines equality to at least one object from the specified list.
var values = new int[] { 4, 1, 7, 2, 9 };
var x = Random.Range(0, 10);
if (x.EqualsToAny(values)) { ... }