here I created the variable appointment of type Pair<Pair <int, int>, String> I would like to create a value of this type and assign it to appointment.
Could somebody help me?
I am new to C# and programming.
Pair< Pair<int, int>, String> appointment = new Pair<Pair<int,int>,String>;
Assuming that
Pairhas a constructor with two argumentsor more concise
or with object initializers (assuming
Pairhas two properties namedArg1andArg2)or if you want to create an empty
Pair