如何存放接口变量指向的对象
怎么存放接口变量指向的对象?
createField :IField;
这个方法返回的是接口,怎么存放其所指向的对象指针。
------解决方案--------------------
......
FFiledList: IInterfaceList;
......
FFieldList := TInterfaceList.Create;
FFieldList.Add(Field);
......
createField :IField;
这个方法返回的是接口,怎么存放其所指向的对象指针。
------解决方案--------------------
......
FFiledList: IInterfaceList;
......
FFieldList := TInterfaceList.Create;
FFieldList.Add(Field);
......