We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Language setting: C#1.0
public static MySettings Default { get { if (!addedHandler) { object obj = addedHandlerLockObject; ObjectFlowControl.CheckForSyncLockOnValueType(obj); bool lockTaken = false; try { Monitor.Enter(obj, ref lockTaken); if (!addedHandler) { MyProject.Application.Shutdown += new ShutdownEventHandler(AutoSaveSettings); addedHandler = true; } } finally { if (lockTaken) { Monitor.Exit(obj); } } } return defaultInstance; } }
Language setting: >=C#2.0
public static MySettings Default { get { if (!addedHandler) { object obj = addedHandlerLockObject; ObjectFlowControl.CheckForSyncLockOnValueType(obj); bool lockTaken = false; try { Monitor.Enter(obj, ref lockTaken); if (!addedHandler) { MyProject.Application.Shutdown += [DebuggerNonUserCode] [EditorBrowsable(EditorBrowsableState.Advanced)] (object sender, EventArgs e) => { if (MyProject.Application.SaveMySettingsOnExit) { MySettingsProperty.Settings.Save(); } }; addedHandler = true; } } finally { if (lockTaken) { Monitor.Exit(obj); } } } return defaultInstance; } }
The text was updated successfully, but these errors were encountered:
Can you please provide the binary? This looks like the original code was VB.NET...
Sorry, something went wrong.
vb.zip @siegfriedpammer Yes, it's VB.NET
@siegfriedpammer A method with attributes should not be decompiled as lambda if current language setting doesn't support lambda with attributes.
No branches or pull requests
Language setting: C#1.0
Language setting: >=C#2.0
The text was updated successfully, but these errors were encountered: