-
Wienstroth Steuerungstechnik GmbH
- Germany
Pinned Loading
-
C# | Async Await / Threading
C# | Async Await / Threading 1async void methodOnMainThread(string bar)
2{
3await fooHandlerAsync(bar);
4// waits for execution of fooHandlerAsync
5}
-
C# | Run code synchronized
C# | Run code synchronized 1[MethodImpl(MethodImplOptions.Synchronized)]
2public void logText(string text)
3{
4// synchronized execution
5}
-
C# | Access UI-Thread from other Thr...
C# | Access UI-Thread from other Thread (Invoke) 1public void logText(string text)
2{
3string newText = "neuer Text";
4form.textBoxLog.Invoke((MethodInvoker)delegate {
5// Running on the UI thread
-
C# | Moving Average / Gleitender Mit...
C# | Moving Average / Gleitender Mittelwert 1class MovingAverage
2{
3private Queue<double> averageQueue;
4private int size;
5private double min, max;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.