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 hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?