Solved

Usefullness of IL code modules in my C# programming.

Posted on 2004-07-30
2
156 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:knowlton
  • 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

810 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