Browse Source

* add IEquatable<T>, requested on forum.

marcoonthegit 3 years ago
parent
commit
d38c881828
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}