c# - does not contain a constructor that takes '1' arguments -


i've searched few topics i'm still stuck, i'm new c# , error starting give me headache. i'm trying initilise list keep getting error message. welcome.

public static list<bookoperator> createbookoperators()          {          list<bookoperator> ops = new list<bookoperator>();          bookoperator op = new bookoperator(ops);         ops.add(op);          return ops;    } 

it looks me there no reason try , pass list book-operator. money says:

public static list<bookoperator> createbookoperators()      {     list<bookoperator> ops = new list<bookoperator>();     bookoperator op = new bookoperator();     ops.add(op);      return ops; } 

or more tersely:

public static list<bookoperator> createbookoperators() {     return new list<bookoperator> {         new bookoperator()     }; } 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -