Just a simple question - 2
Without using your compiler, guess what will be the output of this code:
static void Main(string[] args)
{
Sample<string, int> s = new Sample<string, int>("A", 0);
Console.WriteLine(s.PropA + s.PropB);
Console.ReadLine();
}
public class Sample<A, B>
{
public A PropA = null;
public B PropB = null;
public Sample(A a, B b)
{
PropA = a;
PropB = b;
}
}
and why?