德尔福可以做出以下陈述吗?
TDictionary <T, TList <T>>
编译器不喜欢它:
未声明的标识符:'T'
我在uses
条款中添加了:
System.Generics.Collections;
更新:使用此代码我有这些问题:
interface
uses
System.Generics.Collections;
type
TListado = class(TObject)
private
FListado: TDictionary<T, V: TList<T>>;
function GetListado: TDictionary<T,TList<T>>;
procedure SetListado(const Value: TDictionary<T, TList<T>>);
public
property Listado: TDictionary<T,TList<T>> read GetListado write SetListado;
function ReadItems(Cliente: T):TList<T>;
end;
我更改了单元代码,但在它起作用之前,我不知道我失败了什么。
未声明的标识符:'T'