private void ImportWorker(IncludeStatus statusToImport, AddAssembly addAssembly, AddType addType, AddTypeForwarder addTypeForwarder, AddMember addMember) { foreach (ThinAssembly assembly in _thinModel.Assemblies.Values) { if (assembly.IncludeStatus == statusToImport) addAssembly(assembly); foreach (ThinTypeForwarder typeForwarder in assembly.TypeForwarders.Values) { if (typeForwarder.IncludeStatus == statusToImport) { // Assembly may not have already been added because they might not have the correct IncludedStatus. addAssembly(assembly); addTypeForwarder(typeForwarder); } } foreach (ThinType type in assembly.Types.Values) { if (type.IncludeStatus == statusToImport) { // Assembly may not have already been added because they might not have the correct IncludedStatus. addAssembly(assembly); addType(type); } foreach (ThinMember member in type.Members.Values) { if (member.IncludeStatus == statusToImport) { // Assembly and Type may not have already been added because they might not have the correct IncludedStatus. addAssembly(assembly); addType(type); addMember(member); } } } } }
private void ImportWorker(IncludeStatus statusToImport, AddAssembly addAssembly, AddType addType, AddTypeForwarder addTypeForwarder, AddMember addMember) { foreach (ThinAssembly assembly in _thinModel.Assemblies.Values) { if (assembly.IncludeStatus == statusToImport) { addAssembly(assembly); } foreach (ThinTypeForwarder typeForwarder in assembly.TypeForwarders.Values) { if (typeForwarder.IncludeStatus == statusToImport) { // Assembly may not have already been added because they might not have the correct IncludedStatus. addAssembly(assembly); addTypeForwarder(typeForwarder); } } foreach (ThinType type in assembly.Types.Values) { if (type.IncludeStatus == statusToImport) { // Assembly may not have already been added because they might not have the correct IncludedStatus. addAssembly(assembly); addType(type); } foreach (ThinMember member in type.Members.Values) { if (member.IncludeStatus == statusToImport) { // Assembly and Type may not have already been added because they might not have the correct IncludedStatus. addAssembly(assembly); addType(type); addMember(member); } } } } }