private void Run(IEnumerable <Declaration> members) { var groupedMembers = members.GroupBy(m => m.ProjectName); foreach (var group in groupedMembers) { using (var project = _vbe.VBProjects[group.Key]) using (var typeLib = TypeLibWrapper.FromVBProject(project)) { foreach (var member in group) { _typeLibApi.ExecuteCode(typeLib, member.QualifiedModuleName.ComponentName, member.QualifiedName.MemberName); } } } }
public ReferencesCollection(TypeLibWrapper parent) => _parent = parent;