Get the string after the last \ of a string C#

string path = @"\\localhost\shared\00999\31.Lot No.998.pdf";
string fileName = path.Substring(path.LastIndexOf('\\') + 1);
Console.WriteLine(fileName);