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
Post a Comment