JAL Computing

C++COMProgramming .NET Mac Palm CPP/CLI Hobbies

 

Home
Up

An Empty Class

CIL code from an empty do nothing class.

C# Source Code

using System;
namespace TestILClass
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	class Class1
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			//
			// TODO: Add code to start application here
			//
			System.Console.WriteLine("Hello World!");
			System.Console.WriteLine("JAL 11.24.04");
		}
	}
}

Common Intermediate Language Code

Class1::.class private auto ansi beforefieldinit

.class private auto ansi beforefieldinit Class1
extends [mscorlib]System.Object
{
} // end of class Class1

Class1::ctor:void()

.method public hidebysig specialname rtspecialname 
instance void .ctor() cil managed
{
// Code size 7 (0x7)
.maxstack 1
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
} // end of method Class1::.ctor

Class1::Main:void(string[])

.method private hidebysig static void Main(string[] args) cil managed
{
.entrypoint
.custom instance void [mscorlib]System.STAThreadAttribute::.ctor() = ( 01 00 00 00 ) 
// Code size 21 (0x15)
.maxstack 1
IL_0000: ldstr "Hello World!"
IL_0005: call void [mscorlib]System.Console::WriteLine(string)
IL_000a: ldstr "JAL 11.24.04"
IL_000f: call void [mscorlib]System.Console::WriteLine(string)
IL_0014: ret
} // end of method Class1::Main
 
Send mail to [email protected] with questions or comments about this web site. Copyright © 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 © 
Last modified: 08/04/09
Hosted by www.Geocities.ws

1