Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Singleton initalization type is not properly rewritten #64

Open
handzlikchris opened this issue Apr 24, 2023 · 0 comments
Open

Singleton initalization type is not properly rewritten #64

handzlikchris opened this issue Apr 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@handzlikchris
Copy link
Owner

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 handzlikchris added the bug Something isn't working label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant