CodeKicks.com
Focus on Microsoft Technologies - Tutorials, Articles, Code Samples.

Thursday, August 31, 2006

String Split function in C#, .NET

  /// <summary>
  /// Replacement in C# of the VB.Net split function
  /// </summary>
  /// <param name="baseString">string to parse</param>
  /// <param name="splitChar">chanracter to parse with </param>
  /// <returns></returns>
public static string[] Split(string baseString, string splitChar)
  {
   char[] sep = {(splitChar.ToCharArray())[0]};
   return baseString.Split(sep);
  }

Post a Comment

Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!