排序:
默认
按更新时间
按访问量
RSS订阅

Deep clone object by serialization

public static object DeepClone(object original) { using (MemoryStream ms = new MemoryStream()) { BinaryFormatter ...

2014-06-21 23:21:36

阅读数 872

评论数 0

日期操作

获取天所在周的,第一天和最后一天 private Tuple GetWeekBeginAndEnd(DateTime date) { int dayOfWeek = (int)date.DayOfWeek; var b...

2013-12-27 14:41:32

阅读数 566

评论数 0

FilterOperator

public enum FilterOperator { IsLessThan = 0, IsLessThanOrEqualTo = 1, IsEqualTo = 2, IsNotEqualTo = 3, Is...

2013-12-26 21:36:48

阅读数 789

评论数 0

【常用代码】批量替换Code

private static readonly string _filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "CodeFolder"); private static Dicti...

2013-09-17 10:59:38

阅读数 637

评论数 0

FileHelper.cs

public static string ReadFile(string filePath) { if (File.Exists(filePath)) { return File.ReadAllText...

2013-09-09 19:49:06

阅读数 837

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭