The Wayback Machine - https://web.archive.org/web/20200615145936/https://github.com/topics/cil
Skip to content
#

cil

Here are 49 public repositories matching this topic...

MonoMod
mcpiroman
mcpiroman commented Jan 25, 2020

While reading the code to understand how to use this (or related) library, I found following comment in MonoMod.RuntimeDetour/NativeDetour.cs:
https://github.com/MonoMod/MonoMod/blob/86f3be60825da9328130a639a9a47ba13e49486e/MonoMod.RuntimeDetour/NativeDetour.cs#L18

I didn't find the DetourManager and I think this was meant to be DetourHelper. If so, correcting this would make everything

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.