DataServiceCollection to a String

I have dataServiceCollection and want to pull out some info from it and put it into a string.

    private DataServiceCollection<P.Groups> groups;
    public DataServiceCollection<P.Groups> Groups()
        if (groups == null)
            Uri pRoot = new Uri("http://localhost:19297/WcfDataService1.svc/");
            P.Entities data = new P.Entities(pRoot);

            var query = (DataServiceQuery<P.Groups>)data.GroupsSet;
            groups = new DataServiceCollection<P.Groups>();
        return groups;

    protected override void LoadState(Object navigationParameter, Dictionary<String, Object> pageState)

        var g = Groups();
        this.DefaultViewModel["Groups"] = g;

I can bind this to my xaml page with no problem, but I want to put "g" to a string.


May be just using linq, something like

g.Items.Aggregate((i, j) => i + delimeter + j)

from this post: Concat all strings inside a List<string> using LINQ

Need Your Help

Passing value to a php file via jQuery

php jquery ajax

Let's say that I have two links.

jquery each loop with index other than zero


I have array. I have to run loop after indexing 1. I google it but did not find any answer so I did it by use of for loop. Is there any way to get this done by using of jquery without any extra eff...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.