摘要:
AddConsole方法 // Summary: // Adds a console logger named 'Console' to the factory. // // Parameters: // builder: // The Microsoft.Extensions.Logging.IL 阅读全文
2024年2月9日 #
摘要:
依赖注入的基本使用1/Program.cs using Microsoft.Extensions.DependencyInjection; ServiceCollection services = new ServiceCollection(); // 瞬态服务 services.AddTransi 阅读全文
摘要:
依赖注入的基本使用1/Program.cs using Microsoft.Extensions.DependencyInjection; ServiceCollection services = new ServiceCollection(); // AddTransient的两种方式 // se 阅读全文
2024年2月6日 #
摘要:
代糖的分类 “代糖” 通常是指替代蔗糖、果糖、葡萄糖、麦芽糖、乳糖发挥甜味作用的甜味剂。 代糖能产生甜味,但是热量很低或是无热量,一般被分为人工代糖、天然代糖、糖醇和其他代糖。 常见的人工代糖包括甜蜜素、阿斯巴甜等; 常见的天然代糖包括甜菊糖苷、罗汉果糖等; 糖醇主要有赤藓糖醇、木糖醇、山梨糖醇等, 阅读全文
2024年1月31日 #
摘要:
MIT许可证:只为作者保留版权,而无任何其他了限制。 它使人们几乎可以对您的项目进行任何操作,即时是制作和分发封闭源代码版本。 Babel,.NET Core和 Rails 使用MIT许可证¹。 BSD许可证:同样鼓励代码共享和尊重原作者的著作权,同样允许代码修改,再发布 (作为开源或商业软件)。 阅读全文
摘要:
RemoteDesktopConnection\src\Program.cs #define debug using System; using System.Text.RegularExpressions; namespace RDP { class Program { static void M 阅读全文
摘要:
RemoteDesktopConnection\src\LogInfo.cs namespace RDP { class LogInfo { public string Ipaddress { get; set; } public string Username { get; set; } publ 阅读全文
摘要:
PropertySupport\Person.cs public class Person { public string Name { get; set; } public string getPropertyName() { return PropertySupport.ExtractPrope 阅读全文
摘要:
BindableBase.cs public abstract class BindableBase : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; // 调用方法 : publ 阅读全文
2024年1月30日 #
摘要:
TightVNC连接命令 使用.vnc文件连接 tvnviewer.exe -optionsfile=C:\Users\AUO\Downloads\1.vnc 命令行明文传递密码连接 tvnviewer 192.168.1.168:5900 -password=123456 TightVNC命令 T 阅读全文
摘要:
 阅读全文
摘要:
数据绑定 SimpleBinding\MainWindow.xaml <Window x:Class="SimpleBinding.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: 阅读全文
摘要:
event_learn\MyEvent.cs namespace MyEvent; public delegate void MyEventHandler(object sender, EventArgs e); // 定义一个自定义的事件接口,包含一个事件声明 public interface I 阅读全文
摘要:
event_learn\Program.cs // 定义一个派生自 EventArgs 的自定义类,用于封装数据 public class MyEventArgs : EventArgs { // 定义一个公共的字符串属性,用于存储和获取数据 public DateTime? EmitDate { 阅读全文
摘要:
event_learn\Program.cs using System; // 定义一个发布者类,它有一个 MyEvent 事件 public class Publisher { // 声明一个事件,使用 EventHandler 委托类型 public event EventHandler MyE 阅读全文
2024年1月25日 #
摘要:
Juster.Music\MainWindow.xaml.cs namespace Juster.Music { /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class M 阅读全文
摘要:
WPF MVVM(Model-View-ViewModel) 设计模式 在 WPF 应用程序中使用 MVVM(Model-View-ViewModel)设计模式的一部分,其中 ViewModel(TempModel)负责封装数据和业务逻辑,而 View(MainWindow.xaml)通过 Data 阅读全文
2024年1月24日 #
摘要:
02 什么是SECS/GEM? 答:SECS/GEM是半导体行业用于设备(Equipment)与上层控制系统(Host)之间通信的标准协议和接口。 它由SEMI Equipment Communication Standard (SECS) 和 Generic Equipment Model (GE 阅读全文
摘要:
SECS通信协议 什么是SECS/GEM通信协议? 答:SECS/GEM通信协议是由SEMI国际半导体产业协会制定的一套标准通讯接口,主要用于确保半导体、光电和太阳能等高科技工厂中的控制中心(Host)与生产设备(EQP)之间能够有效地交换信息,并实现生产自动化。这套协议定义了各种消息传送的方式和数 阅读全文
摘要:
secs_wpf\MainWindow.xaml.cs using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Do 阅读全文
2024年1月23日 #
摘要:
secs_learn/Program.cs 此文件是应用程序的入口点,用于配置和启动主机。 使用 Host.CreateDefaultBuilder(args) 创建一个默认配置的主机构建器,自动加载环境变量、配置文件等设置。 .ConfigureServices(...) 方法中,通过 servi 阅读全文
摘要:
secs_learn/Program.cs using DeviceWorkerService; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; Host.CreateDefaul 阅读全文
摘要:
扩展方法 // 定义一个静态类 public static class StringExtension { // 定义一个静态方法,用this关键字指定要扩展的类型 public static string MyReverse(this string s) { // 实现字符串反转的逻辑 char[ 阅读全文
2024年1月21日 #
摘要:
网址 https://www.geeksforgeeks.org/ 说明 每个文档说明,都会配有代码片,还免费. 阅读全文
摘要:
"""convert code to markdown """ import asyncio import datetime import os import platform import re import shutil import xmlrpc.client class ST: # <xxx 阅读全文
摘要:
warning : cell-var-from-loop bing解释 for i in range(10): f = lambda i:i print(f()) The warning message cell-var-from-loop is emitted by Pylint, a Pytho 阅读全文
2024年1月20日 #
摘要:
backup the current project """convert code to markdown """ import datetime import os import platform import re import shutil class CodeToMarkDown: """ 阅读全文
摘要:
efcore-multi-db/MultiDb.sln Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27130.2024 Minim 阅读全文
摘要:
ef core 的使用 依赖包 efcore-multi-db/MultiDb.Two/MultiDb.Two.csproj <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net7.0</TargetFramew 阅读全文
摘要:
code2md md2code """convert code to markdown """ import datetime import os import re class CodeToMarkDown: """_summary_""" __slots__ = ["path", "md_pat 阅读全文
2024年1月19日 #
摘要:
convert code markdown , collect markdown , un collect markdown """convert code to markdown """ import datetime import os import re class CodeToMarkDow 阅读全文
2024年1月18日 #
摘要:
"""convert code to markdown """ import os import re from datetime import datetime # 需要过滤的文件夹 exclude_dirs = [ "__pycache__", "venv", "build", "dist", 阅读全文
摘要:
SqliteToOracle\global.json { "sdk": { "version": "7.0.401" } } SqliteToOracle\SqliteToOracle.sln Microsoft Visual Studio Solution File, Format Versi 阅读全文
2024年1月17日 #
摘要:
convert markdown 2 code project by python import os import re import sys def create_from_file_path(base_dir, file_path, content): # Create the full di 阅读全文
摘要:
convert code 2 markdown by python """convert code to markdown """ import os import re import sys from datetime import datetime # 需要过滤的文件夹 exclude_dirs 阅读全文
2024年1月15日 #
摘要:
对象序列化 要将一个序列化对象存储起来,您可以使用C#中的序列化和反序列化功能。以下是一个示例代码,它演示了如何将一个序列化对象存储到文件中: using System; using System.IO; using System.Runtime.Serialization.Formatters.B 阅读全文
摘要:
dotnet使用ef core读写sqlite数据库 要使用EF Core读写SQLite数据库,您需要安装以下NuGet包: Microsoft.EntityFrameworkCore.Sqlite Microsoft.EntityFrameworkCore.Tools 以下是一个示例代码,它演示 阅读全文
摘要:
C#中如何模拟一个post请求 使用HttpClient代替。以下是修改后的代码示例: using System; using System.Net.Http; using System.Text.Json; class HttpPostExample { private async Task<st 阅读全文
摘要:
对象序列化以及单元测试 F:\song\netframework_serialize\netframework_serialize\Program.cs using netframework_serialize.Animal; using System; using System.Collectio 阅读全文
摘要:
批量下载已经安装的vscode插件 安装指令 # vscode安装目录/bin # 注意拓展的路径 ./code --install-extension xxx/octref.vetur-0.22.6.vsix 批量下载离线安装包 进入已经安装 vscode主机的安装目录 / bin 下, 执行以下 阅读全文