.net framework programming

  • Thread starter Thread starter manish
  • Start date Start date
M

manish

how a program executes in .net framework? In .net framework program
contains only class, how a class run? is a class run without object?
please reply i m new to .net framework.
 
I'll try to answer the question I think your asking. When you compile your
exe, it is still has a PE header. When you execute our exe, Windows reads
the PE, determines that its a managed assembly and passes it to .NET. The
CLI looks for a static method called main in your assembly, and invokes it
passing to it any arguments you provided.

Does this answer your question? If not, could you maybe rephrase it?

-Andrew
http://abaum.com/blog
 
While starting, execution host seeks for existance of static Main method. If you have such a method in more than one classes, you should specify specific class to compiler.
 
Back
Top