bagzli

bagzli

  • NA
  • 36
  • 23.3k

New Class

Oct 20 2012 6:39 PM
Hey guys,

I added a class to my project and called it MyCustomClass, now in my main class I initialize it by saying 

MyCustomClass test = new MyCustomClass;

What I am trying to do is when I create this class I want it to automatically run a default method that will do bunch of stuff.

with java I had a Main method that will happen whenever a class is created, I am trying to figure out what this method is with C# and how do I create it.  So if you are familiar with java I am looking for public static void main(String [], args) method.

Yeah its a really dumb question, I just couldn't find the answer on google...

Thanks for the help.

Answers (4)