public CodeClassWrapper(CodeClass2 cls, CodeClassWrapper parent = null) { _class = cls; _parent = parent; if (_class.ProjectItem == null) { _code = new List <string>(); } string fileName = _class.ProjectItem.get_FileNames(0); _code = File.ReadAllLines(fileName).ToList(); _funcs = _class.Members.OfType <CodeFunction2>().Select(x => new CodeFunctionWrapper(x, this)).ToList(); _props = _class.Members.OfType <CodeProperty2>().Select(x => new CodePropertyWrapper(x, this)).ToList(); _classes = _class.Members.OfType <CodeClass2>().Select(x => new CodeClassWrapper(x, this)).ToList(); }
public CodeFunctionWrapper(CodeFunction2 func, CodeClassWrapper parent) { _func = func; _parent = parent; }
public CodePropertyWrapper(CodeProperty2 func, CodeClassWrapper parent) { _prop = func; _parent = parent; }