Browse Source

* add IEquatable<T>, requested on forum.

(cherry picked from commit d38c881828a81741bfaa4c88f2ee52d4e799b647)
marcoonthegit 3 years ago
parent
commit
a97beb3fd5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/objpas/objpas.pp

+ 3 - 0
rtl/objpas/objpas.pp

@@ -86,6 +86,9 @@ interface
        generic IEnumerable<T> = interface
          function GetEnumerator: specialize IEnumerator<T>;
        end;
+       generic IEquatable<T>  = interface
+                                  function Equals(Value:T):boolean;
+                                 end;
 {$endif}
 
 {$SCOPEDENUMS ON}