M
Marc
I am just starting out teaching myself C#, and I have come accross a
confusing point in my book. It seems that any class can have a Main()
function, but what does that mean? Is the Main() function for a class called
whenever an instance of that class is created, or would it be there for
another purpose?
I already know that one of the Main() functions can be asssigned to be entry
point for the entire program. However what class should this function be in?
I am coming from Cocoa on Mac OS X which seems to be organized very
similarly, yet very differently, from C#. In Cocoa, the owner of the
application has it's init method called when the program is first launched.
Is that what this is equivilent to in C#?
Thanks for any help.
- Marc
confusing point in my book. It seems that any class can have a Main()
function, but what does that mean? Is the Main() function for a class called
whenever an instance of that class is created, or would it be there for
another purpose?
I already know that one of the Main() functions can be asssigned to be entry
point for the entire program. However what class should this function be in?
I am coming from Cocoa on Mac OS X which seems to be organized very
similarly, yet very differently, from C#. In Cocoa, the owner of the
application has it's init method called when the program is first launched.
Is that what this is equivilent to in C#?
Thanks for any help.
- Marc