03 2024 档案

摘要:<Window x:Class="WpfApp28.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-03-31 22:06 FredGrit 阅读(21) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp26.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-03-29 12:05 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp24.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-03-29 01:05 FredGrit 阅读(24) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System 阅读全文
posted @ 2024-03-28 16:13 FredGrit 阅读(22) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp21.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-03-28 01:45 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要:Completely implemented via C# and without the intervation of xaml using System; using System.Collections.Generic; using System.Data.SqlTypes; using Sy 阅读全文
posted @ 2024-03-27 00:12 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System 阅读全文
posted @ 2024-03-26 10:54 FredGrit 阅读(40) 评论(0) 推荐(0) 编辑
摘要://Add resource dictionary file named Brushes.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http: 阅读全文
posted @ 2024-03-24 20:57 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp13.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-03-24 12:31 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要://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 阅读(4) 评论(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 阅读(10) 评论(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 阅读(2) 评论(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 阅读(12) 评论(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 阅读(5) 评论(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 阅读(9) 评论(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 阅读(5) 评论(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 阅读(4) 评论(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 阅读(15) 评论(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 阅读(7) 评论(0) 推荐(0) 编辑
摘要:static void Main(string[] args) { GenericMethod(); LogInfo(); } static void GenericMethod() { MethodInfo mi = typeof(Program).GetMethod("Echo"); Conso 阅读全文
posted @ 2024-03-09 12:33 FredGrit 阅读(96) 评论(0) 推荐(0) 编辑
摘要:static void RuntimeGetTypeLateBinding() { object s = "Hello"; PropertyInfo pi = s.GetType().GetProperty("Length"); Console.WriteLine((int)pi.GetValue( 阅读全文
posted @ 2024-03-08 19:40 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://Powershell [guid]::NewGuid() 95e37b33-5219-4fc9-a794-d6a30c9e175b //Command Prompt powershell [guid]::NewGuid() 阅读全文
posted @ 2024-03-08 16:10 FredGrit 阅读(18) 评论(0) 推荐(0) 编辑
摘要:CA stands for Certificate Authority 阅读全文
posted @ 2024-03-05 23:58 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Newtonsoft.Json.xml <member name="M:Newtonsoft.Json.JsonConvert.SerializeObject(System.Object)"> <summary> Serializes the specified object to a JSON s 阅读全文
posted @ 2024-03-05 23:23 FredGrit 阅读(13) 评论(0) 推荐(0) 编辑
摘要:// MSBuild.exe ProjectName.csproj -t:rebuild MSBuild.exe ConsoleApp16.csproj -t:rebuild //dotnet run ApplicationName.exe dotnet run ConsoleApp16.exe / 阅读全文
posted @ 2024-03-05 22:22 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp5.Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/win 阅读全文
posted @ 2024-03-05 16:13 FredGrit 阅读(13) 评论(0) 推荐(0) 编辑
摘要:Copy from https://dotnettutorials.net/lesson/abstract-factory-design-pattern-csharp/ “A factory is an object used for creating other objects. In techn 阅读全文
posted @ 2024-03-05 13:40 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:using System; using System.IO; using System.Runtime.CompilerServices; namespace ConsoleApp16 { internal class Program { static void Main(string[] args 阅读全文
posted @ 2024-03-05 10:17 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示