/// <summary> /// Parse a class from file /// </summary> /// <param name="aClass">Class object</param> /// <param name="filename">Class filename</param> static public void ParseClass(ASClass aClass) { string src; // read file content try { if (!File.Exists(aClass.FileName)) { return; } StreamReader sr = new StreamReader(aClass.FileName); src = sr.ReadToEnd(); sr.Close(); } catch (Exception ex) { context.DisplayError(ex.Message); return; } // parse ParseClass(aClass, src); }