浏览代码

rtl: add IEnumerator and IEnumerable interfaces declarations

git-svn-id: branches/paul/features@13950 -
paul 16 年之前
父节点
当前提交
7bd1cc46b6
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      rtl/inc/objpash.inc

+ 12 - 0
rtl/inc/objpash.inc

@@ -229,6 +229,18 @@
        end;
        {$M-}
 
+       { enumerator support }
+       IEnumerator = interface(IInterface)
+         function GetCurrent: TObject;
+         function MoveNext: Boolean;
+         procedure Reset;
+         property Current: TObject read GetCurrent;
+       end;
+
+       IEnumerable = interface(IInterface)
+         function GetEnumerator: IEnumerator;
+       end;
+
        { for native dispinterface support }
        IDispatch = interface(IUnknown)
           ['{00020400-0000-0000-C000-000000000046}']