上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 137 下一页
摘要: //xaml <Window x:Class="WpfApp12.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-03-24 10:32 FredGrit 阅读(37) 评论(0) 推荐(0)
摘要: //xaml <Window x:Class="WpfApp11.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-03-23 23:17 FredGrit 阅读(66) 评论(0) 推荐(0)
摘要: //xaml <Window x:Class="WpfApp10.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-03-23 22:43 FredGrit 阅读(32) 评论(0) 推荐(0)
摘要: 1.Create a class library project named CustomMarkupExtension using System; using System.Collections.Generic; using System.Linq; using System.Text; usi 阅读全文
posted @ 2024-03-18 17:00 FredGrit 阅读(57) 评论(0) 推荐(0)
摘要: <Window x:Class="WpfApp7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2024-03-12 17:13 FredGrit 阅读(58) 评论(0) 推荐(0)
摘要: class TwoWaySingaling { static EventWaitHandle ready = new AutoResetEvent(false); static EventWaitHandle go = new AutoResetEvent(false); static readon 阅读全文
posted @ 2024-03-12 11:20 FredGrit 阅读(41) 评论(0) 推荐(0)
摘要: using System; using System.IO; using System.Runtime.CompilerServices; using System.Reflection; using System.Diagnostics; namespace ConsoleApp19 { inte 阅读全文
posted @ 2024-03-11 17:01 FredGrit 阅读(37) 评论(0) 推荐(0)
摘要: static void ManualResetEventFalseReset() { var signal = new ManualResetEvent(false); int x = 10; PrintLine(); new Thread(() => { PrintLine(); x++; Thr 阅读全文
posted @ 2024-03-09 20:55 FredGrit 阅读(35) 评论(0) 推荐(0)
摘要: class ThreadSafe { static readonly object _locker = new object(); static int _val1 = 1, _val2 = 1; static void Go() { lock(_locker) { if(_val2!=0) { C 阅读全文
posted @ 2024-03-09 17:28 FredGrit 阅读(83) 评论(0) 推荐(0)
摘要: [AttributeUsage(AttributeTargets.Method)] public sealed class TestAttribute:Attribute { public int Repetitions; public string FailureMessage; public T 阅读全文
posted @ 2024-03-09 14:21 FredGrit 阅读(39) 评论(0) 推荐(0)
上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 137 下一页