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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -