public void Open(string path) { TextAsset txt = Res2.Load <TextAsset>(path); if (txt != null) { string aw = txt.ToString(); words = aw.Split('\n'); } else { words = new string[0]; } //删除注释 for (int i = 0; i < words.Length; i++) { int tempIndedx = words[i].LastIndexOf("//"); if (tempIndedx >= 0) { words[i] = words[i].Substring(0, tempIndedx); } words[i] = words[i].Trim(); } pos = 0; }
public static void Entry() { Inf i = new Cls(); i.Foo("nice"); Res res = i.Foo <Res>(); Res2 res2 = i.Foo <Res2>(); i.Foo(res, res2); }
public static void Main_old() { try { using (Res1 res1 = new Res1()) { res1.Func(); using (Res2 res2 = new Res2()) { res2.Func(); res1.Throw(); } } } catch { Log.Comment("System.Exception caught"); } }
public static void Main_old() { using (Res1 res1 = new Res1()) { res1.Func(); using (Res2 res2 = new Res2()) { res2.Func(); } } }