il
Why does C# compiler emit additional OpCodes in IL?
If I\'ve a method Multiply defined as: public static class Experiment { public static int Multiply(int a, int b)[详细]
2023-04-11 07:49 分类:问答Creating method dynamically, and executing it
Background: I want to define few static methods in C# , and generate IL code as byte array, from one of these methods, selected at runtime (on client), and send the byte array over network to another[详细]
2023-04-10 21:05 分类:问答Does managed code mean JIT or GC?
I\'ve seen several explanations on what \"managed\" code means, and some target the idea of managed code being compiled to an intermediate language and JITed and others talk about GC and memory manage[详细]
2023-04-08 08:32 分类:问答How to edit a hardcoded string in compiled DLL?
I have a single compiled dll which i need to change a little. It was written by me half a year ago, but I\'ve lost the source code. There\'s开发者_Go百科 one single hardcoded string in it (it\'s a fil[详细]
2023-04-08 04:21 分类:问答Why such a difference in IL between IF and the conditional operator?
C# has a conditional operator and IF statements and I suspected that the conditional operator would be just syntactic sugar. So at compile time it would have a the same as an IF operation.[详细]
2023-04-02 07:08 分类:问答How to generate IL source code with csc (C# compiler) or dmcs (mono C# compiler)?
gcc has an option of -s to generate assembly source code. Does csc (MS C# compiler) or dmcs (mono C# compiler) have equivalence? I mean do those compilers provide an option to generate IL source code[详细]
2023-04-01 01:26 分类:问答Why is the .ctor() created when I compile C# code into IL?
With this simple C# code, I run csc hello.cs; ildasm /out=hello.txt hello.exe. class Hello { public static void Main()[详细]
2023-03-31 19:25 分类:问答Generated IL differences for VB.NET and C#
Today I was playing around with Entity Framework and I\'ve read that the generated IL for C# was different than VB.NET for the following code:[详细]
2023-03-31 04:06 分类:问答IL Instructions not exposed by C#
What IL instructions are not exposed by C#? I\'m referring to instructions like sizeof and cpblk - there\'s no class or command that executes these instructions (sizeof in C# is computed at compile t[详细]
2023-03-29 05:32 分类:问答MissingManifestResourceException when running tests after building with MSBuild (.mresource has path in manifest)
I am having a problem with embedded resources for a C# project on a build server using MSBuild on the command line. The project works just fine when building and running tests in Visual Studio, but wh[详细]
2023-03-28 17:07 分类:问答