Answers for "c# get section of string"

C#
3

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
Posted by: Guest on April-29-2020
2

c# get certain character from string

string myString = "string";
// outputs r
print(mystring[2]);
Posted by: Guest on December-05-2020

C# Answers by Framework

Browse Popular Code Answers by Language