custom-object

asp.Net GridView bind custom object with nested List

Hi All, I have a List of custom object, which consist of a custom list. class person{ string name; int age; List<friend> allMyFriends; } class friend{ string name; string address; } I'trying to bind a list of these objects to a GridView and the Grid should create for each friend a column and write the name in it. If some p...

WCF returning a custom object with a collection of custom objects containing streams

Hi! I don't know if this could be done, but I have a WCF service that should return a custom object, the object has a collection of another custom object that contains a stream. when I try to return this object I get System.Runtime.Serialization.InvalidDataContractException: Type 'System.ServiceModel.Dispatcher.StreamFormatter+Message...

Performance regarding return type for LINQ query compatible with automatic sorting

Hi! this isn't really an issue, but more of a concern that I would appreciate some input on please. Winforms C# .net3.5[sp1] Visual Studio 2008 using Linq2Sql (more specifically PLINQO...which is fantastic btw!). I have a resultset returning +/- 19000 rows of data (with about 80bytes of data per row) and opted to push the data retrieva...

How to create custom objects/list of custom objects in VB.NET?

I need two seperate lists, which every item is Integer, String, Bitmap - and one which every item is Integer, String String. However I don't know how to do this, or even where to look - I've googled for custom objects and custom object lists. What I'm trying to do is this. Custom Object1 is Integer, String, Bitmap Custom Object2 is Integ...

What's the best way to store custom objects in relational database?

I have my objects with their properties. Objects could change their structure: properties may be added/removed/changed. Objects could be absolutely dropped. So object's metadata (description, classes, call them like you want :) )could be changed. The database should store objects schemas and instances of these objects. What's the best ...

Why is my WCF RIA Services custom object deserializing with an extra list member?

I have been developing a Silverlight WCF RIA Services application dealing with mock financial transactions. To more efficiently send summary data to the client without going overboard with serialized entities I have created a summary class that isn’t in my EDM, and figured out how to serialize and send it over the wire to the SL client ...

Finding matches in arrays of objects in Powershell

Hi, I'm using custom objects to hold the name and schema from a set of SQL Server objects. I put the objects into an array, then I get another set of objects and put those into another array. What I'd like to do now is find all exact matches between the two arrays. I'm currently using this: $filteredSQLObjects = @() foreach ($SQLObje...

How to post a custom user defined object to a url?

Hi all, MyObject myobject= new MyObject(); myobject.name="Test"; myobject.address="test"; myobject.contactno=1234; string url = "http://www.myurl.com/Key/1234?" + myobject; WebRequest myRequest = WebRequest.Create(url); WebResponse myResponse = myRequest.GetResponse(); myResponse.Close(); Now the above doesnt work but if I try to hit...