TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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.
Reply
Answers (
4
)
How can i create C# Application Or Project Setup within database?
Can somebody tell me how to load a Excel file in a Grid view ?