Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is an in depth knowledge of IL important for .net development

Tags:

.net

il

When I did mostly c++ I though it was critical to know assembly and wrote some non trial asm code just so that I could truly understand what was going on. I now do mostly .net and while I have some understanding of IL I am by no means proficient.

Is IL a skill that one should have a knowledge of or will learning IL more completely go on to inform how I use and write .net code?

like image 978
rerun Avatar asked Feb 08 '10 18:02

rerun


2 Answers

Learning IL completely is like learning assembly, in many ways.

Having an understanding of IL can help you understand what happens when you're actually compiling your .NET code. This can be very helpful, especially if you ever run into performance critical profiling situations (where you've found a real problem, and need to optimize it).

However, for most "day to day" programming tasks, I don't think it's really necessary to understand the IL, just like most C++ programmers don't really need to know how to write assembly.

That being said, if you understand assembly code with a C++ background, getting a general idea of IL will be very, very easy...

like image 92
Reed Copsey Avatar answered Oct 24 '22 00:10

Reed Copsey


If you are just trying to write a .NET app you don't need any working knowledge of IL code. Most .NET developers do not know how to write in IL code.

IL will help you if you are trying to understand what is truly going on. You can use it to write more efficient code on a machine, that might not be obvious in the .NET language you are writing.

like image 8
David Basarab Avatar answered Oct 23 '22 23:10

David Basarab