FastScriptReload icon indicating copy to clipboard operation
FastScriptReload copied to clipboard

Singleton initalization type is not properly rewritten

Open handzlikchris opened this issue 2 years ago • 0 comments

public class SingletonTest
{
    private static SingletonTest _instance;
 
    public static SingletonTest Instance
    {
        get
        {
            if (_instance == null)
            {
                _instance = new SingletonTest(); //Won't be rewritten to __Patched_ version, even with AllPatchedIdentifiersRewriter enabled
            }
            return _instance;
        }
    }
       
    private SingletonTest()
    {
             
    }
}

handzlikchris avatar Apr 24 '23 09:04 handzlikchris