Horje
remove all text after string c# Code Example
remove all text after string c#
string input = "text?here";
int index = input.LastIndexOf("?"); // Character to remove "?"
if (index > 0)
    input = input.Substring(0, index); // This will remove all text after character ?




Csharp

Related
c# counting lines Code Example c# counting lines Code Example
string to enum c# Code Example string to enum c# Code Example
how to set serial number in gridview in asp net Code Example how to set serial number in gridview in asp net Code Example
binding command to event wpf Code Example binding command to event wpf Code Example
unity unparent Code Example unity unparent Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8