C# Example code of Generics