I have a large string and its stored in a string variable str. And i want to get a substring from that in c#?
Suppose the string is : \" Retrieves a substring from thi
var data =" Retrieves a substring from this instance. The substring starts at a specified character position.";
var result = data.Split(new[] {'.'}, 1)[0];
Output:
Retrieves a substring from this instance. The substring starts at a
specified character position.