码迷,mamicode.com
首页 > Windows程序
C# List<Object>值拷贝
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Runtime.Serialization.Formatters.Binary;using System.Text...
分类:Windows程序   时间:2015-01-19 20:50:56    阅读次数:270
C# 给DataTable去重
using System;using System.Data;namespace DelegateTest{ public class Program { public static void Main(string[] args) { ...
分类:Windows程序   时间:2015-01-19 20:47:21    阅读次数:215
C# 生成GUID
1、Guid.NewGuid().ToString("N")结果为:38bddf48f43c48588e0d78761eaa1ce62、Guid.NewGuid().ToString("D")结果为:57d99d89-caab-482a-a0e9-a0a803eed3ba3、Guid.NewGuid...
分类:Windows程序   时间:2015-01-19 20:47:48    阅读次数:223
C# 获取系统环境数据
using System;using System.Data;using System.Text.RegularExpressions;using System.Threading;namespace DelegateTest{ public class Program { ...
分类:Windows程序   时间:2015-01-19 20:46:52    阅读次数:190
C# Socket编程
using System;using System.IO;using System.Net;using System.Net.Sockets;using System.Text;namespace ConsoleApplication2{ public class Program { ...
分类:Windows程序   时间:2015-01-19 20:45:48    阅读次数:158
性能调优的Windows窗体DataGridView控件
性能调优的Windows窗体DataGridView控件。 净框架4.5在处理大量数据时,DataGridView控制可以消耗大量的内存开销,除非你仔细地使用它。 在客户有限的内存,你可以避免一些这方面的开销,避免内存成本高的特性。 你也可以管理的部分或全部数据维护和检索任务自己使用虚拟模式为了定制...
分类:Windows程序   时间:2015-01-19 20:44:47    阅读次数:194
C# 获取一个文件的MD5值
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplic...
分类:Windows程序   时间:2015-01-19 20:44:43    阅读次数:246
C# Base64加解密
using System;using System.Collections.Generic;using System.Text;using System.Security.Cryptography;using System.IO;namespace EncryptAndDecrypt{ pub...
分类:Windows程序   时间:2015-01-19 20:42:04    阅读次数:196
用C#实现获取文件夹大小的源代码
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace FileList{ ...
分类:Windows程序   时间:2015-01-19 20:41:00    阅读次数:181
C# 中定义扩展方法
1.编写扩展方法类using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace CSharpCharacteric{ /// /// 扩展方法类 /// ...
分类:Windows程序   时间:2015-01-19 20:41:04    阅读次数:290
理解C#系列 / 核心C# / 判断&循环&跳转
判断&循环&跳转说明本节写的是C#语言的控制程序流的语句,“控制程序流”就是控制程序运行流程的意思。判断很容易理解:如果……就……if语句:测试特定条件是否满足,如果满足就执行某些代码,如果不满足就执行else中的代码。int i=0;if(i==0){ i=1;}else{ i=0;}...
分类:Windows程序   时间:2015-01-19 20:39:32    阅读次数:273
C# 操作XML
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.Threading.Tasks;using System.Xml;using...
分类:Windows程序   时间:2015-01-19 20:39:21    阅读次数:276
最佳实践扩展Windows窗体DataGridView控件 .net 4.5 附示例代码
Windows窗体DataGridView控件的性能调优.net 4.5在处理大量数据时,DataGridView控制可以消耗大量的内存开销,除非你仔细地使用它。 在客户有限的内存,你可以避免一些这方面的开销,避免内存成本高的特性。 你也可以管理的部分或全部数据维护和检索任务自己使用虚拟模式为了定制...
分类:Windows程序   时间:2015-01-19 20:39:22    阅读次数:413
C# 模拟页面登录
using System;using System.Collections;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;using System.Text;using Syst...
分类:Windows程序   时间:2015-01-19 20:32:48    阅读次数:197
C# 列出并删除一个文件夹下的所有MD5值相同的文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace ConsoleApplic...
分类:Windows程序   时间:2015-01-19 20:33:30    阅读次数:497
C# 创建读写txt
try { string filePath = Application.StartupPath + "tst.txt"; FileStream fs = new FileStream(filePath, FileMode.Append, FileAccess.W...
分类:Windows程序   时间:2015-01-19 20:31:22    阅读次数:234
C# WinForm定时触发事件
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:Windows程序   时间:2015-01-19 20:30:55    阅读次数:539
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!