Skip to content
Jasper Zanjani edited this page Aug 18, 2020 · 5 revisions
Random randint = new Random();
int value = randint.Next(3, 9);
System.Threading.Thread.Sleep(1000);
  • ThreadLocal
  • ThreadStart
  • ParameterizedThreadStart
static void Task1() {
  Thread.Sleep(1000);
}
static void Task2() {
  Thread.Sleep(2000);
}
static void Main(string[] args) {
  Parallel.Invoke(() => Task1(), () => Task2());
  Console.WriteLine("Finished processing.")
  Console.ReadKey();
}
  • IAsyncOperation
    • StorageFolder
      • CreateFileAsync
      • TryGetItemAsync
    • StorageFile
      • OpenAsync
  • ApplicationView
    • PreferredLaunchViewSize Gets or sets the size that the app launches with when the ApplicationView.PreferredLaunchWindowingMode property is set to PreferredLaunchViewSize, except in cases where the system manages the window size directly.
    • PreferredLaunchWindowingMode Gets or sets a value that indicates the windowing mode the app launches with.
[ContentProperty(Name = nameof(Customer))]
public sealed partial class CustomerDetailControl : UserControl
{
  public CustomerDetailControl()
  {
    this.InitializeComponent();
  }
}