Code Inlining

Eazfuscator.NET

Code Inlining

using System;
using System.Reflection;

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Inlining test");
        SecretMethod();
    }

    [Obfuscation(Feature = "inline", Exclude = false)]
    static void SecretMethod()
    {
        Console.WriteLine("Secret");
    }
}
using System;
using System.Reflection;

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Inlining test");
        Console.WriteLine("Secret");
    }
}

Instructions on enabling method inlining

  1. Open the source code of a method you want to inline
  2. using System;
    using System.Reflection;
    
    class YourClass
    {
        [Obfuscation(Feature = "inline", Exclude = false)]
        void YourMethod()
        {
            ...
        }
    }
    Imports System
    Imports System.Reflection
    
    Class YourClass
    
        <Obfuscation(Feature:="inline", Exclude:=False)> 
        Sub YourMethod()
            ...
        End Sub
        
    End Class