collection (3,580)


c# When to use an extension method with lambda over LINQtoObjects to filter a collection?

c# When to use an extension method with lambda over LINQtoObjects to filter a collection?

I am prototyping some C# 3 collection filters and came across this. I have a collection of products: public class MyProduct{public string Name{get; set;}public Double Price{get; set;…


Is there any list datatype in MySQL stored procedures, or a way to emulate them?

I would like to create a stored procedure in MySQL that took a list as argument. For example, say that I would like to be able to set multiple tags for an item in one call, then what I want to do is…


c# Best implementation for Key Value Pair Data Structure?

So I've been poking around with C# a bit lately, and all the Generic Collections have me a little confused. Say I wanted to represent a data structure where the head of a tree was a key value pair, an…


How do I create a Linked List Data Structure in Java?

What's the best way to make a linked list in Java?…



c# Sorting a composite collection

So WPF doesn't support standard sorting or filtering behavior for views of CompositeCollections, so what would be a best practice for solving this problem. There are two or more object collections o…


.net Practical use of System.WeakReference

I understand what System.WeakReference does, but what I can't seem to grasp is a practical example of what it might be useful for. The class itself seems to me to be, well, a hack. It seems to me th…


c# List<BusinessObject> or BusinessObjectCollection?

Prior to C# generics, everyone would code collections for their business objects by creating a collection base that implemented IEnumerable IE: public class CollectionBase:IEnumerable and then woul…


Why Java and Python garbage collection methods are different?

Python uses the reference count method to handle object life time. So an object that has no more use will be immediately destroyed. But, in Java, the GC(garbage collector) destroys objects which are…


java Why won't.NET deserialize my primitive array from a web service?

Help! I have an Axis web service that is being consumed by a C# application. Everything works great, except that arrays of long values always come across as[0,0,0,0]-the right length, but the va…


c# How to expose a collection property?

Every time I create an object that has a collection property I go back and forth on the best way to do it? public property with a getter that returns a reference to private variable explicit get_Obj…




example java list garbage how object array from and not