how to get last characters after seperator in c# code example Example: substring c# after character var result = str.Substring(str.LastIndexOf('-') + 1);