extract the next two characters following a character C# code example Example: substring c# after character var result = str.Substring(str.LastIndexOf('-') + 1);