Exemplo n.º 1
0
 /// <summary>
 /// Retrieves the file name with the extension in a given string.
 /// </summary>
 /// <remarks>
 /// Examples:
 /// "C:\Team\Text\Test.Txt" would return "Test.Txt".
 /// "C:\Team\Text\Test" would return "Test".
 /// </remarks>
 public static string GetNameWithExtension(
     string path)
 {
     return(string.IsNullOrEmpty(path) ? path : ZlpPathHelper.GetFileNameFromFilePath(path));
 }