03 2013 档案

摘要:1.改变sprite的zorder函数:reorderChild2.removeFromParentAndCleanup3.removeAllChildrenWithCleanup 阅读全文
posted @ 2013-03-16 22:47 Clin 阅读(166) 评论(0) 推荐(0)
摘要:1 /// <summary> 2 /// 字符串简体转繁体 3 /// </summary> 4 /// <param name="strSimple"></param> 5 /// <returns></returns> 6 public static string ToTraditionalChinese(string strSimple) 7 { 8 string strTraditional = Microsoft.VisualBasic.Strings.StrConv(strSimple, 阅读全文
posted @ 2013-03-14 14:15 Clin 阅读(4249) 评论(1) 推荐(0)
摘要:1 public class CSVFileHelper 2 { 3 /// <summary> 4 /// 将DataTable中数据写入到CSV文件中 5 /// </summary> 6 /// <param name="dt">提供保存数据的DataTable</param> 7 /// <param name="fileName">CSV的文件路径</param> 8 public static void SaveCSV(DataTable dt, string fullP 阅读全文
posted @ 2013-03-14 11:29 Clin 阅读(94977) 评论(20) 推荐(9)
摘要:1、判定一个给定的路径是否有效,合法 通过Path.GetInvalidPathChars或Path.GetInvalidFileNameChars方法获得非法的路径/文件名字符,可以根据它来判断路径中是否包含非法字符;2、如何确定一个路径字符串是表示目录还是文件 使用Directory.Exists或File.Exist方法,如果前者为真,则路径表示目录;如果后者为真,则路径表示文件 上面的方法有个缺点就是不能处理那些不存在的文件或目录。这时可以考虑使用Path.GetFileName方法获得其包含的文件名,如果一个路径不为空,而文件名为空那么它表示目录,否则表示文件;3、获得路... 阅读全文
posted @ 2013-03-14 11:26 Clin 阅读(526) 评论(0) 推荐(0)
摘要:包含逗号, 双引号, 或是换行符的字段必须放在引号内.字段内部的引号必须在其前面增加一个引号来实现文字引号的转码.分隔符逗号前后的空格可能不会被修剪掉. 这是RFC 4180的要求.元素中的换行符将被保留下来.http://zh.wikipedia.org/wiki/%E9%80%97%E5%8F%B7%E5%88%86%E9%9A%94%E5%80%BC 阅读全文
posted @ 2013-03-13 16:38 Clin 阅读(311) 评论(0) 推荐(0)