2 ms·
That depends on the version of c#. MyObject obj = new MyObject(); can also be expressed as var obj = new MyObject(); or MyObject obj = new(); Neither of t
by Mountain_Skies 6y ago
That depends on the version of c#.
MyObject obj = new MyObject();
can also be expressed as
var obj = new MyObject();
or
MyObject obj = new();
Neither of these were possible in early versions of c# but both are there now.