D
Dmitry Martynov
What if I have some special constructors and do not have a default
constructor. It seems to be very useful when I do not want to forget to
initialize some fields properly. As I have understood classes with no
default constructor can not be arguments of generic types. Why I can not
specify "new ( smth. )" as a constraint of a generic parameter? Or may be
the document http://www.msdn.microsoft.com/vcsharp/language misses this
case?
constructor. It seems to be very useful when I do not want to forget to
initialize some fields properly. As I have understood classes with no
default constructor can not be arguments of generic types. Why I can not
specify "new ( smth. )" as a constraint of a generic parameter? Or may be
the document http://www.msdn.microsoft.com/vcsharp/language misses this
case?