Showing posts with label .net list. Show all posts
Showing posts with label .net list. Show all posts

Thursday, June 6, 2013

Get comma separated string from list c#.net

 List ls = new List();
            ls.Add(10);
            ls.Add(20);
            ls.Add(30);
            ls.Add(40);
            ls.Add(50);
            string type = string.Join(",", ls.ToArray());


returns the value "10,20,30,40,50"


 
 

Get comma separated string from list c#.net

 List ls = new List();
            ls.Add(10);
            ls.Add(20);
            ls.Add(30);
            ls.Add(40);
            ls.Add(50);
            string type = string.Join(",", ls.ToArray());


returns the value "10,20,30,40,50"


 
 

Get comma separated string from list c#.net

 List ls = new List();
            ls.Add(10);
            ls.Add(20);
            ls.Add(30);
            ls.Add(40);
            ls.Add(50);
            string type = string.Join(",", ls.ToArray());


returns the value "10,20,30,40,50"


 
 

Rest Service using WEB API C#

This post will show a simple example of REST service built on Micrsoft WEB API framework. WEB API is an extensible framework from microsof...