Click here to Skip to main content
15,887,316 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Is it a new version of DLL hell? Pin
leppie17-Jun-03 9:15
leppie17-Jun-03 9:15 
GeneralRe: Is it a new version of DLL hell? Pin
Oleksandr Kucherenko17-Jun-03 21:06
Oleksandr Kucherenko17-Jun-03 21:06 
GeneralRe: Is it a new version of DLL hell? Pin
leppie18-Jun-03 7:09
leppie18-Jun-03 7:09 
GeneralObject Memory Space Pin
CBoland16-Jun-03 9:09
CBoland16-Jun-03 9:09 
GeneralRe: Object Memory Space Pin
Daniel Turini17-Jun-03 10:07
Daniel Turini17-Jun-03 10:07 
GeneralRe: Object Memory Space Pin
Aravinthan25-Jun-03 3:31
Aravinthan25-Jun-03 3:31 
GeneralFORM VB 6 to VB.net Pin
Jonavis13-Jun-03 11:21
Jonavis13-Jun-03 11:21 
GeneralIL Optimization Pin
leppie13-Jun-03 10:02
leppie13-Jun-03 10:02 
Hi all, hope some one can help here Smile | :)

I have this in C#:
void Save(){}
bool Execute(){}

bool Process()
{
  Save();
  return Execute();
}

.NET generates the following IL:
.locals init (bool V_0)
IL_0000:  ldarg.0
IL_0001:  call       instance void Save()
IL_0006:  ldarg.0
IL_0007:  callvirt   instance bool Execute()
IL_000c:  stloc.0
IL_000d:  ldloc.0
IL_000e:  ret

Now why does it not do this?
IL_0000:  ldarg.0
IL_0001:  call       instance void Save()
IL_0006:  ldarg.0
IL_0007:  callvirt   instance bool Execute()
IL_000c:  ret

I mean this does mean this "do" this same doesnt it? Is there a reason for this behaviour?

Cheers Smile | :)

<a TITLE="See my user info" href=http://www.codeproject.com/script/profile/whos_who.asp?id=38829>leppie<a>::<a TITLE="Go to all articles  written by me" href=http://www.codeproject.com/script/articles/list_articles.asp?userid=38829>AllocCPArticle</a>(<a TITLE="Go to my latest, greatest article!" href=http://www.codeproject.com/useritems/dfamachine.asp >Generic DFA State Machine for .NET</a>);

GeneralRe: IL Optimization Pin
Daniel Turini13-Jun-03 10:22
Daniel Turini13-Jun-03 10:22 
GeneralRe: IL Optimization Pin
leppie13-Jun-03 10:38
leppie13-Jun-03 10:38 
GeneralRe: IL Optimization Pin
Daniel Turini13-Jun-03 10:53
Daniel Turini13-Jun-03 10:53 
GeneralRe: IL Optimization Pin
leppie13-Jun-03 11:08
leppie13-Jun-03 11:08 
GeneralRe: IL Optimization Pin
Daniel Turini13-Jun-03 11:32
Daniel Turini13-Jun-03 11:32 
GeneralRe: IL Optimization Pin
leppie13-Jun-03 12:04
leppie13-Jun-03 12:04 
GeneralIIS Permissions and .NET Framework Pin
Roger Wright13-Jun-03 8:47
professionalRoger Wright13-Jun-03 8:47 
Generalscrolling without a scrollbar Pin
mindfuck13-Jun-03 4:26
mindfuck13-Jun-03 4:26 
GeneralSystem.Windows.Forms.Panel AutoScroll Pin
Anonymous11-Jun-03 12:50
Anonymous11-Jun-03 12:50 
GeneralQuestion about UTF8 Encoding Pin
NorthWoodsman10-Jun-03 17:06
NorthWoodsman10-Jun-03 17:06 
GeneralRe: Question about UTF8 Encoding Pin
Laimis13-Jun-03 5:19
Laimis13-Jun-03 5:19 
QuestionIs that a way to let your 1.1 application freely running on all kinds of framework? Pin
fftongzhi10-Jun-03 16:54
fftongzhi10-Jun-03 16:54 
AnswerRe: Is that a way to let your 1.1 application freely running on all kinds of framework? Pin
Shaun Wilde10-Jun-03 21:03
Shaun Wilde10-Jun-03 21:03 
General.NET based portals Pin
Shaun Wilde10-Jun-03 3:41
Shaun Wilde10-Jun-03 3:41 
QuestionHow To: Report on inter-class dependancies?? Pin
jboy9-Jun-03 15:40
jboy9-Jun-03 15:40 
QuestionBitmapeditor? Pin
Stan Shannon9-Jun-03 2:45
Stan Shannon9-Jun-03 2:45 
GeneralMust be simple question for .NET interop gurus here... Pin
igor19608-Jun-03 20:01
igor19608-Jun-03 20:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.