GetFileName() public static method

Gets the file name from a valid path, which is located after the last PathSeparator.
public static GetFileName ( string path ) : string
path string The path.
return string
Example #1
0
 private BinaryFileName NormalizeFileName(BinaryFileName fileName)
 {
     if (fileName.FullFileName.Contains("\\"))
     {
         return(Path.GetFileName(fileName.FullFileName));
     }
     if (fileName.FullFileName.Contains("/"))
     {
         return(RepositoryPath.GetFileName(fileName.FullFileName));
     }
     return(fileName);
 }