static void Main(string[] args) { Console.WriteLine("Hello World!"); var c = new Class1(); c.A(); }
private async void MainPage_Loaded(object sender, RoutedEventArgs e) { try { await Class1.A(); Block1.Text = "ok"; } catch (Exception exception) { Block1.Text = $"{exception.Message}"; } }
static void Main(string[] args) { var a = new Class1(); a.A(); }