में एनओपी का बिंदु क्या है इसलिए मैंने निम्नलिखित कोड सी # में लिखा था।सीआईएल
class Test
{
int a;
System.IO.StreamReader reader;
public Test()
{
a = 5;
reader = new System.IO.StreamReader(String.Empty);
}
}
और आईएल में वर्ग के निर्माता इस
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
// Code size 33 (0x21)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: nop
IL_0007: nop
IL_0008: ldarg.0
IL_0009: ldc.i4.5
IL_000a: stfld int32 Test2.Test::a
IL_000f: ldarg.0
IL_0010: ldsfld string [mscorlib]System.String::Empty
IL_0015: newobj instance void [mscorlib]System.IO.StreamReader::.ctor(string)
IL_001a: stfld class [mscorlib]System.IO.StreamReader Test2.Test::reader
IL_001f: nop
IL_0020: ret
} // end of method Test::.ctor
तरह लग रहा है 3 nop
आदेशों रहे हैं। (जो मुझे पता है कि कोई ऑपरेशन नहीं है)। उन आदेशों की क्या ज़रूरत है। मेरा मतलब है कि अगर nop