possible to inline assembly or IL in C# code? why??
possible to inline assembly or IL in C# code? why??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 21, 2014, 5:09 AM
It's no surprise that you can't use inline assembly language as C# applications are not compiled directly to native code and are intended to be platform independent.
Although the language designers could have allowed for the inclusion of inline IL code, given that you can write an IL dll using Ilasm.exe and then reference that from a C# application, they probably felt that the former would have been an unnecessary refinement in what was intended - initially at least - to be a simple language.