public static void CopyFilesFromResources(IDictionary <string, string> filesPair) { foreach (KeyValuePair <string, string> filePair in filesPair) { File.WriteAllBytes(filePair.Value, General.GetResourceContents(filePair.Key)); } }