What is the C# .NET Silverlight equivalent of componentsSeparatedByString in Objective-C? -
what c# .net silverlight equivalent of componentsseparatedbystring in objective-c?
here how method works in objective-c:
nsstring *namesstr = @"john;michael;jason"; nsarray *namesarray = [namesstr componentsseparatedbystring:@";"];
is there c# .net list?
you can use string.split
:
var names = namesstr.split(';');
Comments
Post a Comment