public void Load(IEnumerable <string> pathes) { List <string> toProcess = new List <string>(); toProcess.AddRange(pathes); if (CheckPC(toProcess)) { } else if (CheckAndroid(toProcess)) { } CheckMixed(toProcess); if (PlatformStructure != null) { foreach (string filePath in PlatformStructure.FetchFiles()) { string fileName = FileMultiStream.GetFileName(filePath); if (m_knownFiles.Add(fileName)) { FileCollection.Load(filePath); } } } foreach (string filePath in MixedStructure.FetchFiles()) { string fileName = FileMultiStream.GetFileName(filePath); if (m_knownFiles.Add(fileName)) { FileCollection.Load(filePath); } } }
public IEnumerable <string> FetchFiles() { if (PlatformStructure != null) { foreach (string assemblyPath in PlatformStructure.FetchFiles()) { yield return(assemblyPath); } } foreach (string assemblyPath in MixedStructure.FetchFiles()) { yield return(assemblyPath); } }