substring c# after character
var result = str.Substring(str.LastIndexOf('-') + 1);
substring c# after character
var result = str.Substring(str.LastIndexOf('-') + 1);
c# get certain character from string
string myString = "string";
// outputs r
print(mystring[2]);
how to look for substring in string in c#
String phrase = "this is the ultimate string";
Console.WriteLine(phrase.Contains("this")); //returns True
Console.WriteLine(phrase.Contains("python")); //returns False
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us