소스 검색

* add IEquatable<T>, requested on forum.

marcoonthegit 3 년 전
부모
커밋
d38c881828
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      rtl/objpas/objpas.pp

+ 3 - 0
rtl/objpas/objpas.pp

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