Google
 

Tuesday, September 14, 2004

Delphi Syntax for Generics

Delphi Syntax for Generic Types will be:

type TFoo = class
private
data1: T;
public
function SomMethod(param1: INteger; Param2 :T) : Integer;
end;

function TFoo.SomeMethod(...);
begin
end;

var
Foo : TFoo;

No comments: