using c# params keyword constructor general types
i have general category c# 2 constructors:
public houses(params t[] initialiseelements)
{}
public houses(int num, t defaultvalue)
{}
constructing an vigilant controlling int general form flitting twin ints arguments causes 'incorrect' constructor called (from indicate view).
e.g. houses<int> houses = new houses<int>(1,2)
- calls 2nd construtor. flitting any array ints constructor 1st constructor.
is there any proceed around stealing params keyword forcing users pass an array t controlling initial constructor?
Comments
Post a Comment