03 2017 档案

c#序列化与反序列化(文本)
摘要:using System.IO; using System.Runtime.Serialization.Formatters.Binary; public class Serialize { static public void DoSerialize(T obj, string path) { using (FileStream fs = new FileStr... 阅读全文

posted @ 2017-03-31 15:17 yungs 阅读(502) 评论(0) 推荐(0)

win7下c#特殊文件夹
摘要:Desktop : C:\Users\XXX\Desktop Programs : C:\Users\XXX\AppData\Roaming\Microsoft\Windows\Start Menu\Programs MyDocuments : C:\Users\XXX\Documents MyDocuments : C:\Users\XXX\Documents Favorites : C:\U... 阅读全文

posted @ 2017-03-17 10:22 yungs 阅读(236) 评论(0) 推荐(0)

Unity单例写法,一劳永逸。
摘要:/// /// Singleton class /// /// Type of the singleton public abstract class Singleton : MonoBehaviour where T : Singleton { private static T s_instance; /// /// The static reference to... 阅读全文

posted @ 2017-03-13 16:38 yungs 阅读(216) 评论(0) 推荐(0)