Skip to content
#

cil

Here are 52 public repositories matching this topic...

IL2C
bencz
bencz commented Apr 11, 2020

Are there any plans to implement the reflection system in the project, if so, do you have any idea how it will work to generate methods and classes at runtime, and execute this code?

For exemple, if we have this code:

    static void Main(string[] args)
    {
        const string AssemblyName = "HelloWorld.dll";
        var assembly = AssemblyBuilder.DefineDynamicAssembly(
zsr2531
zsr2531 commented Oct 11, 2020

Summary: An external data source is pushed onto the stack whenever the state resolvers of both AsmResolver and dnlib encounter a fault Cil exception handler. This is incorrect, no exception object is pushed on the stack at the start of fault blocks.

Affected files:

MSDN-WhiteKnight
MSDN-WhiteKnight commented Feb 9, 2020

When outputting signature of entry point method as CIL assembler code, it should be marked with .entrypoint directive.

Example code:

using System;
using System.Reflection;
using CilBytecodeParser;

class Program
{    
    public static void Main(string[] args)
    {
        Console.WriteLine(CilAnalysis.MethodToText(MethodBase.GetCurrentMethod()));
        Console.ReadKey();

Improve this page

Add a description, image, and links to the cil topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cil topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.