Esempio n. 1
0
    public static void Main()
    {
        Gen2 <string, int> x = new Gen2 <string, int>("Value is: ", 99);

        Console.Write(x.getob());
        Console.WriteLine(x.getob2());
    }
    public static void Main()
    {
        Gen <int> iOb = new Gen <int>(88);

        Console.WriteLine(iOb.getob());

        iOb = new Gen2 <int>(99);

        Console.WriteLine(iOb.getob());
    }
Esempio n. 3
0
    public static void Main()
    {
        Gen2 <string> g2 = new Gen2 <string>("Hello");

        Console.WriteLine(g2.getob());
    }