The Wayback Machine - https://web.archive.org/web/20201002195048/https://github.com/topics/cil
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(
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.