Horje
c# substring until character single Code Example
c# substring until character single
static void Main(string[] args)
{
    string s = "223232-1.jpg";
    Console.WriteLine(s.Split('-')[0]);
    s = "443-2.jpg";
    Console.WriteLine(s.Split('-')[0]);
    s = "34443553-5.jpg";
    Console.WriteLine(s.Split('-')[0]);

Console.ReadKey();
}




Csharp

Related
checkbox in c# Code Example checkbox in c# Code Example
cannot implicitly convert type 'void' to 'system.eventhandler' Code Example cannot implicitly convert type 'void' to 'system.eventhandler' Code Example
install nuget package for S3 Code Example install nuget package for S3 Code Example
how to turn components on and off in unity through code Code Example how to turn components on and off in unity through code Code Example
c# find a wav file Code Example c# find a wav file Code Example

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