D
D
Dmitry Skogorev2014-07-30 11:54:42
C++ / C#
Dmitry Skogorev, 2014-07-30 11:54:42

Where to look for an error in C# code?

I decompile one project in C # and try to assemble what I need from the pieces. Unfortunately, I can’t show the code out of harm’s way =)
I have the following error:
Error 1 Since 'ConsoleApplication5.Program.Main(string[])' returns void, a return keyword must not be followed by an object expression
the error refers to
return myClass;
which can lead to this error. I can't come up with a clear explanation. thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Kulakov, 2014-07-30
@carbon88

apparently somewhere the Main method returns some value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question