I am trying to understand the IL code and the internal elements of C # at the moment, I wrote a simple C # hello world program whose code is:
using System;
class Program
{
public static void Main()
{
Console.WriteLine("Hello World");
}
}
and here IL is generated for the constuctor class Program:
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: ret
}
I can not understand what the meaning and purpose of specialname and rtspecialname mean or their use?
source
share