Skip to content
View tp-wst's full-sized avatar
  • Wienstroth Steuerungstechnik GmbH
  • Germany
Block or Report

Block or report tp-wst

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. C# | Async Await / Threading C# | Async Await / Threading
    1
    async void methodOnMainThread(string bar)
    2
    {
    3
      await fooHandlerAsync(bar);
    4
      // waits for execution of fooHandlerAsync
    5
    }
  2. C# | Run code synchronized C# | Run code synchronized
    1
    [MethodImpl(MethodImplOptions.Synchronized)]
    2
    public void logText(string text)
    3
    {
    4
        // synchronized execution
    5
    }
  3. C# | Access UI-Thread from other Thr... C# | Access UI-Thread from other Thread (Invoke)
    1
    public void logText(string text)
    2
    {
    3
        string newText = "neuer Text";
    4
        form.textBoxLog.Invoke((MethodInvoker)delegate {
    5
            // Running on the UI thread
  4. C# | Moving Average / Gleitender Mit... C# | Moving Average / Gleitender Mittelwert
    1
    class MovingAverage
    2
    {
    3
        private Queue<double> averageQueue;
    4
        private int           size;
    5
        private double        min, max;