摘要:
父窗口: <Window x:Class="子窗口显示在父窗口中间.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2022-07-12 15:01
羽小兮
阅读(1774)
评论(0)
推荐(0)
摘要:
using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Folding; using ICSharpCode.NRefactory.Editor; using System; using System.Collectio 阅读全文
posted @ 2022-07-12 14:29
羽小兮
阅读(198)
评论(0)
推荐(0)
摘要:
bool createNew; Process process = Process.GetCurrentProcess(); Mutex mutex = new Mutex(true, "CMS IDE", out createNew); if (!createNew) { foreach (Pro 阅读全文
posted @ 2022-07-12 14:19
羽小兮
阅读(270)
评论(0)
推荐(0)
摘要:
引入log4.net包:VS导航栏 工具->NuGet 包管理器->管理解决方案的NuGet 程序包 搜索log4net 安装 加一个log4.net 的配置文件,命名为log4net.config,属性设置为如果较新则复制到输出目录 <log4net> <logger name="logerror 阅读全文
posted @ 2022-07-12 14:13
羽小兮
阅读(339)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Linq; namespace 读 阅读全文
posted @ 2022-07-12 11:31
羽小兮
阅读(336)
评论(0)
推荐(0)
摘要:
using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 字符串转日期的 阅读全文
posted @ 2022-07-12 11:25
羽小兮
阅读(1301)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tas 阅读全文
posted @ 2022-07-12 11:23
羽小兮
阅读(108)
评论(0)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 字典转树形结构 { class Program 阅读全文
posted @ 2022-07-12 11:21
羽小兮
阅读(57)
评论(0)
推荐(0)
摘要:
using System.IO; string str1 = Path.GetFileName("C:\\Silverlight\\sss.exe"); // sss.exe string str2 = Path.GetFileNameWithoutExtension("C:\\Silverligh 阅读全文
posted @ 2022-07-12 11:09
羽小兮
阅读(91)
评论(0)
推荐(0)
摘要:
FileStream 构造函数可以有四个参数: String, FileMode, FileAccess, FileShare, 第一个参数表示路径。后面三个参数如下: FileMode CreateNew 创建新的。文件若存在,则异常。 Create 创建新的。文件若存在,则覆盖。 Open 打开 阅读全文
posted @ 2022-07-12 11:07
羽小兮
阅读(512)
评论(0)
推荐(0)
摘要:
var utf8WithoutBom = new UTF8Encoding(false); StreamWriter writer = new StreamWriter(stream, utf8WithoutBom); //写文件内容的操作 //...... writer.Close(); 阅读全文
posted @ 2022-07-12 11:05
羽小兮
阅读(488)
评论(0)
推荐(0)
摘要:
// 读取文件的创建、修改、访问时间 FileInfo fi = new FileInfo("C:\\test.txt"); Console.WriteLine(fi.CreationTime.ToString()); Console.WriteLine(fi.LastWriteTime.ToStr 阅读全文
posted @ 2022-07-12 10:59
羽小兮
阅读(410)
评论(0)
推荐(0)

浙公网安备 33010602011771号