Generic Class « Generics « C# / C Sharp






1.A simple generic classA simple generic class
2.Declare the generic class.
3.A Generic Class with Two Type ParametersA Generic Class with Two Type Parameters
4.Generic Fields
5.Create relationship between two type parameters
6.Demonstrate the default keywordDemonstrate the default keyword
7.Comparing Instances of a Type ParameterComparing Instances of a Type Parameter
8.'This' Reference for Generic Types
9.Generic class with interfaceGeneric class with interface