public void Process() { if (m_input.Count == 0) m_input.Add("./proto/"); foreach (var path in m_input) { DirectoryInfo di = new DirectoryInfo(path); FileInfo[] files = di.GetFiles("*.proto"); for (int i = 0; i < files.Length; ++i) { Proto proto = new Proto(files[i].FullName); proto.Parse(); m_protos.Add(proto); } } Check(); Output(); }