C#
dengsunshine69
这个作者很懒,什么都没留下…
展开
-
C# DataTable抽取Distinct数据(不重复数据)
DataTable dataTable; DataView dataView = dataTable.DefaultView; DataTable dataTableDistinct = dataView.ToTable(true,"FieldName1","FieldName2","...");//注:其中ToTable()的第一个参数为是否DISTINCT转载 2015-08-26 15:36:59 · 535 阅读 · 0 评论 -
换行符
1.Windows 中的换行符"\r\n" 2.Unix/Linux 平台换行符是 "\n"。 3.MessageBox.Show() 的换行符为 "\n" 4.Console 的换行符为 "\n" 为保持平台的通用性,可以用系统默认换行符 System.Environment.NewLine。 换行符还因平台差异而不同。原创 2015-07-28 19:10:09 · 371 阅读 · 0 评论 -
如何获取网络标准时间
我提供一种获取网络标准时间的方法 public static DateTime GetNetworkTime() { //default Windows time server const string ntpServer = "time.windows.com";转载 2015-08-05 20:41:57 · 2288 阅读 · 0 评论