Autor Beitrag
Felix2000
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124



BeitragVerfasst: Fr 26.08.11 14:51 
Hi Folks !

Ich muss euch nochmal etwas fragen. Wofür benutzt man bei Interfaces das Zeichen <T>? Also so z.B. IInterface<T>. was genau hat das zu bedeuten? Sind das irgendwelche Einschränkungen der Daten, die ein Interface beinhalten darf!?

Greetz
Felix
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4708
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Fr 26.08.11 14:55 
Das T in diesem Zusammenhang ist ein generischer Typparameter. Generics sind aber ein größeres Thema als sie anhand von einem Interface zu erklären. Wenn du dir das allgemein mal ansiehst was Generics sind wirst du verstehen können was die im Zusammenhang mit Interfaces sollen.