?
=?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?=
Ok, I realize that it doesn't really matter because it simply isn't
possible, but does anyone know the reason why the constraint on the
generic parameters for new() doesn't allow parameters?
Ie. why isn't this allowed:
public class Collection<T> where T: SomeBaseClass, new(Session)
to make sure the type has a constructor with a Session parameter?
possible, but does anyone know the reason why the constraint on the
generic parameters for new() doesn't allow parameters?
Ie. why isn't this allowed:
public class Collection<T> where T: SomeBaseClass, new(Session)
to make sure the type has a constructor with a Session parameter?