I'm learning C# and am somewhat new to it, so please excuse my seemingly inane inquiry. I've worked with Java before, and I've noticed that C# projects likewise require a main() method in the main class.
What if I want to make a class that isn't a main class, but that I can import into one?
When I compile (through cmd using csc File.cs), the compiler complains that the.exe it would generate lacks a main() method. Is this to say that I was mistaken and that every class need a main() method, or that I'm compiling it incorrectly?
Perhaps the issue is in the code (as I'm relying on my Java syntactic expertise), which looks like this:
public class Class
public Class(int stuff)
this.stuff = stuff;
public void method()