Error: "No overload method for 'class' takes 'n' arguments"
-
Hi all, I've got a DataRow inherited class like this: public class CustomDataRow : DataRow { new public this[string columnName] { get { [...] } set { [...] } } } When compiling, Visual Studio shows this error: "No overload method for 'DataRow' takes '0' arguments" I tried to add a default constructor like... public class CustomDataRow : DataRow { public CustomDataRow() { } new public this[string columnName] { get { [...] } set { [...] } } } ...but error continues. Any idea? Thanks in advance. :confused:
-
Hi all, I've got a DataRow inherited class like this: public class CustomDataRow : DataRow { new public this[string columnName] { get { [...] } set { [...] } } } When compiling, Visual Studio shows this error: "No overload method for 'DataRow' takes '0' arguments" I tried to add a default constructor like... public class CustomDataRow : DataRow { public CustomDataRow() { } new public this[string columnName] { get { [...] } set { [...] } } } ...but error continues. Any idea? Thanks in advance. :confused: