Search
Categories
  ASP.NET
Visual C#
Visual Basic
.NET Framework
ADO.NET
AJAX
LINQ
Java
 
How To Rating
 
0.0 out of 5


Total Votes: 0
         
1 2 3 4 5
 




How to Join multiple strings into a single Delimited String

Author: Waqas Anwar - Posted Date: 16-July-2009 - Category: .NET Framework   
Bookmark and Share
If you have an array of Strings in your program and you want to join all the elements into a single delimited string you can use Join method of String class as follows:
string[] numbers = { "255", "10", "10", "70"};
string ip = String.Join(".", numbers);

Console.WriteLine(ip);        // will output 255.10.10.70


RELATED HOW TOs

  How to Split a Delimited String in .NET
  How to convert a string into bytes array in .NET

LEAVE YOUR COMMENTS LEAVE YOUR COMMENTS
 Name (required)  
 Email (required
 Website


 

 


 
 
 

Categories

My Portfolio

Website Links


Copyright @ 2009 EzzyLearning.com