get the object properties

I have a code that returns me an object of widgets

XDocument loaded = XDocument.Parse( xml );

var widgets = from x in loaded.Descendants( "widget" )
              select new
                  URL = x.Descendants( "url" ).First().Value,
                  Category = x.Descendants( "PortalCategoryId" ).First().Value

I am trying to create a method that will return the object widgets and then I need another method where I can cal it from and access the values. I am new to C# and using vs2010



Anonymous types cannot easily be shared across methods.

You should make a class to store that data.

Need Your Help

Callback function within map

javascript cordova reactjs

I'm new to Reactjs and making a directory browsing application with Cordova and Reactjs.

Passing PHP array to Javascript array using implode(), join() or json_encode()

php javascript arrays wordpress wordpress-plugin

I am working on a Wordpress plugin and I need to pass PHP array to Javascript array. I have tried using join(), implode() and even Json_encode. But, the wordpress is not displaying any value.

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.