public static void Terminate() { ApplicationState assert11; ApplicationState assert12; switch (CoreApp.State) { case ApplicationState.Terminating: case ApplicationState.Uninitialized: return; case ApplicationState.Background: break; case ApplicationState.Foreground: case ApplicationState.Interactive: { CoreApp.EnterBackground(); break; } } assert11 = CoreApp.State; global::Uno.Diagnostics.Debug.Assert(assert11 == ApplicationState.Background, "Uno.Platform.CoreApp.State == Uno.Platform.ApplicationState.Background", "Library/Core/UnoCore/Source/Uno/Platform/CoreApp.uno", 238, new object[] { (object)assert11, (object)ApplicationState.Background }); CoreApp.State = ApplicationState.Terminating; ApplicationStateTransitionHandler handler = CoreApp.Terminating; if (handler != null) { handler(CoreApp.State); } assert12 = CoreApp.State; global::Uno.Diagnostics.Debug.Assert(assert12 == ApplicationState.Terminating, "Uno.Platform.CoreApp.State == Uno.Platform.ApplicationState.Terminating", "Library/Core/UnoCore/Source/Uno/Platform/CoreApp.uno", 246, new object[] { (object)assert12, (object)ApplicationState.Terminating }); CoreApp.State = ApplicationState.Uninitialized; }