
C#
疯癫小程序
这个作者很懒,什么都没留下…
展开
-
C#某个进程启动多个外部进程
纯粹为了以后参考using System;using System.Diagnostics;using System.Threading;using System.Threading.Tasks;namespace StartMultiProcess{ class Program { private static int m_finishTaskCount = 0; static async void StartProcesses(stri原创 2022-05-26 14:51:41 · 594 阅读 · 0 评论 -
对打表速度进行排序
纯粹为了记录,方便以后参考using System;using System.Collections.Generic;using System.IO;namespace AnalyzeBatchExcelCostTime{ public class Contet { public string m_src; public int m_cost; } class Program { static void原创 2022-05-26 14:50:16 · 173 阅读 · 0 评论 -
C#比较MD5编码
纯粹为了记录,方便以后拷贝using System;using System.Collections.Generic;using System.IO;using System.Text;namespace CompareBytesMd5{ class Program { public static string CalculateMD5(string filePath) { try {原创 2022-05-26 14:48:37 · 438 阅读 · 0 评论 -
C#杂记
# 自定义结构体实现操作符public struct Grid2D {// 必须是静态public static bool operator == (Grid2D a, Grid2D b) { return (a.m_x == b.m_x) && (a.m_y == b._my);}public int m_x;public int m_y;}原创 2020-07-10 11:44:39 · 483 阅读 · 0 评论 -
C#的显式接口实现
using System;namespace CSharp{ public interface IValueInfo { int Value1Get { get; } int Value2Get { get; } } /// <summary> /// 正常接口实现 /// </summary> public class NormalImpl : IValueInfo { .原创 2020-07-02 16:17:46 · 383 阅读 · 0 评论 -
C#线程安全的类或函数设计
using System;using System.Runtime.Remoting.Contexts;using System.Threading;namespace test_synchronization { [Synchronization(SynchronizationAttribute.REQUIRED, true)] // 整个类都是线程安全 class ...原创 2019-07-08 16:10:24 · 829 阅读 · 0 评论 -
C#读写文件范例
class Program { static void Main(string[] args) { string strLine = string.Empty; FileStream filein = new FileStream("D:/zihao-record/keyan.txt", FileMode.Open...原创 2019-05-22 09:57:17 · 333 阅读 · 0 评论 -
2016-11-10-22.50
KyuuBackground 编辑器装饰扩展Unity 5.3.5f1(32bit)原创 2016-11-10 22:51:57 · 449 阅读 · 0 评论 -
如何:将图像从一种格式转换为另一种格式 C#
<br />见链接:<br />http://msdn.microsoft.com/zh-cn/library/twss4wb0(v=VS.90).aspx原创 2011-04-14 15:45:00 · 661 阅读 · 0 评论 -
delegate
转载自:http://zhidao.baidu.com/question/230672747.htmlDelegate类简介------------------------ 命名空间:System程序集:mscorlib(在 mscorlib.dll 中) 委托(Delegate)类是一种数据结构,通过它可引用静态方法或引用类实例及该类的实例方法。 以往的界面编程中我们应该都接触过各种类型的事件驱动(event driven)的处理模式,在这种模式里,我们定义相转载 2011-04-01 17:43:00 · 580 阅读 · 0 评论 -
如何按列在 Visual C# 中排序 ListView 控件
<br />详见帖子:http://support.microsoft.com/kb/319401/zh-cn原创 2011-04-01 10:39:00 · 602 阅读 · 0 评论