CmisSync.UIHelpers.FindImagePathname C# (CSharp) Метод

FindImagePathname() приватный статический Метод

private static FindImagePathname ( string folder, string filename ) : string
folder string
filename string
Результат string
        private static string FindImagePathname(string folder, string filename) {
            ClientBrand brand = new ClientBrand();
            foreach (string path in brand.PathList) {
                if (Path.GetFileName(path) == filename) {
                    string pathname = Path.Combine(folder, path.Substring(1));
                    if (File.Exists(pathname)) {
                        return pathname;
                    } else {
                        return null;
                    }
                }
            }

            return null;
        }