Hello,Am using .net c#I have a .net page that calls a class as thus:user_processor myclass = new user_processor();
And the class does some work and is "MEANT" To give a feedback to the calling page. Which i tried using. ( Here is my edited code )public class user_processor{ public user_processor(string user) {
try { int lenght = Int32.Parse(csv[0]); statusquo = "success"; { return statusquo; } } catch { //IF ERROR statusquo = "failure"; {return statusquo ;} }
I get the errorCompilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0127: Since 'user_processor.user_processor(string)' returns void, a return keyword must not be followed by an object expressionSource Error: Line 90: statusquoLine 91: statusquo = "failure";Line 92: { return statusquo; }Line 93: }Line 94: catch