In this section, I’ll show you how to turn your source file, containing various types, into a file that can be deployed. Let’s start by examining the following simple application:
public class App { static public void Main(System.String[] args) { System.Console.WriteLine("Hi"); } }
This application defines a type, called App
. This type has a single static, public method called Main
. Inside Main
is a reference to another type called System.Console
. System.Console
is a type implemented by Microsoft, and the IL code that implements this type’s methods are in the MSCorLib.dll file. So, our application defines a type and also uses another company’s type.
To build this sample application, put the preceding code into a source ...
No credit card required