c# - Only assignment, call, increment, decrement, and new object expressions can be used as a statement and ; Expected -
public string messageitem (string itemname) { { return dsmessagecontents.tables["input"].rows[0].tostring();} }
i getting 2 errors:
- only assignment, call, increment, decrements, , new object expressions can used statement, ,
- expected ;
you're combining method , property that... won't work. :)
use method:
public string messageitem(string itemname) { return dsmessagecontents.tables["input"].rows[0].tostring(); }
or property:
public string messageitem { { return dsmessagecontents.tables["input"].rows[0].tostring(); } }
Comments
Post a Comment