A
Andreas Håkansson
I added an external tool with
Command: C:\Program\Microsoft Visual Studio .NET
2003\SDK\v1.1\Bin\ildasm.exe
Arguments: $(TargetName)$(TargetExt)
Initial Directory: $(TargetDir)
I get the disassembler but I can not see any methods onyl variables in my
classes ?
//Andreas
Command: C:\Program\Microsoft Visual Studio .NET
2003\SDK\v1.1\Bin\ildasm.exe
Arguments: $(TargetName)$(TargetExt)
Initial Directory: $(TargetDir)
I get the disassembler but I can not see any methods onyl variables in my
classes ?
//Andreas
Andreas Håkansson said:Opps, make that Ildasm.exe =)
shorterAndreas Håkansson said:Willy,
Is there any nice way to add the ilasm.exe as a tool to vs.net so
I wont have to command line it each time? Maybe then I'd go the IL
way more often to check things out =)
//Andreas
Willy Denoyette said:The (IMO) shortest IL codepath generated by the C# compiler (with optimize
option on).
Here it is:
.method public hidebysig static bool MyNullOrEmpty(string 'value') cil
managed
{
// Code size 15 (0xf)
.maxstack 8
IL_0000: ldarg.0
IL_0001: brfalse.s IL_000d
IL_0003: ldarg.0
IL_0004: callvirt instance int32 [mscorlib]System.String::get_Length()
IL_0009: ldc.i4.0
IL_000a: ceq
IL_000c: ret
IL_000d: ldc.i4.1
IL_000e: ret
} // end of method Tester::MyNullOrEmpty
Willy.
"Andreas Håkansson" <andy.h (at) telia.com> wrote in message
Willy,
I've never actually went down the IL road (I really should), do you
mean
shortest as in "you wont have to create an class instance" or
This I can't figure