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

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members