Added calls to Application.Shutdown () into docs

This commit is contained in:
Thomas Nind
2022-04-30 19:58:46 +01:00
parent 7a12d7c85e
commit 0fbb2bc81a
2 changed files with 8 additions and 1 deletions

View File

@@ -187,6 +187,7 @@ win.Add(
);
Application.Run();
Application.Shutdown();
```
Alternatively, you can encapsulate the app behavior in a new `Window`-derived class, say `App.cs` containing the code above, and simplify your `Main` method to:
@@ -198,6 +199,7 @@ class Demo {
static void Main ()
{
Application.Run<App> ();
Application.Shutdown ();
}
}
```