Solved

Usefullness of IL code modules in my C# programming.

Posted on 2004-07-30
2
158 Views
Last Modified: 2010-04-15
I'm reading a book on C# and it says while writing code in pure IL is possible (although not as productive) you can use IL to do things that you cannot do in C#...for example...you can create global functions and call them from within IL.

Can someone tell me more about this.  What are the othe practical uses of IL code, beside the example I just gave from the book?
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11680592
well you can put static members on interfaces as an example ... there are a few things that you cant do in C# but not that many are really "important". VB.NEt can also create these global functions (the module declaration create a function and a static class).
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
ID: 11681017
as TAD pointed out in another question another good use is reflecting dynamic classes to avoid branching conditions ....

his example I believe was

for(i=0;i<100000;i++) {
    val += i;
}

vs

i+= 1;
1+=2;
...
i+= 99999;
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question