C# code:
ClassX x = new ClassX();
IL code:
.entrypoint
// Code size 20 (0x14)
.maxstack 1
.locals init ([0] class CSharpExam.ClassX x)
IL_0000: nop
IL_0001: newobj instance void CSharpExam.ClassX::.ctor()
assembly code:
00000035 mov ecx,943738h
0000003a call FFAA1FAC
0000003f mov dword ptr [ebp-44h],eax
00000042 mov ecx,dword ptr [ebp-44h]
00000045 call FFABC108
0000004a mov eax,dword ptr [ebp-44h]
0000004d mov dword ptr [ebp-40h],eax
Here I paste the asembly code of it.
Who can somebody explain what IL directive "newobj" do in details?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Aug 4, 2011, 3:03 AM EDT
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Aug 4, 2011, 2:20 AM EDT
refer this Link and find the pdf in Download link
hope it help you......
Amit ChoudharyRank #145 · 15.8K reputationPosted Aug 4, 2011, 4:10 AM EDT