Type Parameters (Classes) C# with Example



Type Parameters (Classes) C# with Example

Declaration: 
class MyGenericClass 
{ 
 

// Do something with the type parameters. 
} 
Initialisation: 
var x = new MyGenericClass(); 
Usage (as the type of a parameter): 
void AnotherMethod(MyGenericClass arg) { ... } 

0 Comment's

Comment Form

Submit Comment