Stories recently tagged with 'Collections'

Generic(Collection) Usage in the .NET Framework(www.davidyardy.com)

submitted by dyardydyardy(199) 1 year, 8 months ago

Generics provide a way for developers to define subroutines, functions, fields, properties as well as classes, structures, interfaces and even delegates in such a way that the parameters are not of any particular type. In a sense the constructs are defined in a generic approach. The .NET Framework contains the following namespaces:System.Collections, read more...

add a comment |category: |Views: 157

tags: another

Read-Only Collections in .NET(blog.noldorin.com)

submitted by NoldorinNoldorin(829) 2 years, 3 months ago

Complete implementations of a ReadOnlyDictionary<TKey, TValue> and ReadOnlySet<T> class in C# 3.0, in the style of the ReadOnlyCollection<T> class in the BCL. read more...

add a comment |category: |Views: 13

tags: another

IDictionary's missing methods(dimebrain.com)

submitted by dcrennadcrenna(1355) 3 years, 10 months ago

A set of extension methods to make any IDictionary-implementing collections easier to work with: TryGetValue, ContainsKey, and RemoveAll. read more...

add a comment |category: |Views: 7

tags: another

Implementing the Each method in C# collections.(blog.latrompa.com)

submitted by hgarciahgarcia(1534) 4 years, 4 months ago

Ruby has it, Prototype add it to JavaScript array. I find myself using it a lot, why not to implement it in C#? Take a look at a quiet take on this one. read more...

add a comment |category: |Views: 7

tags: another

The Specialised Collections(blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4217) 4 years, 10 months ago

The forty-third part of the C# Fundamentals tutorial describes the specialised (or specialized) collection classes. The .NET framework provides five different types of specialised collection, each being optimised for a particular structure or data type. read more...

add a comment |category: |Views: 1

tags: another

How-To: "Cast" between List<T>'s(devlicio.us)

submitted by dwhittakerdwhittaker(13.1k) 4 years, 11 months ago

If you've ever tried to cast been list generics, you know that you can't. read more...

2 comments |category: |Views: 24

tags: another

Old story but a good resource(wintellect.com)

submitted by yesthatmcgurkyesthatmcgurk(4063) 5 years, 2 months ago

From the same people who brought you Process Explorer comes Power Collections, a .NET assembly containing many standard generic collections not implemented in the framework. These collections also have many more useful methods (NthLargest I likes) you also won't find in the standard collections. And its all free for commercial use. For the specs, see http://www.wintellect.com/PowerCollectionsAttachments/POWERCOLLECTIONS_SPECIFICATION_2.pdf read more...

add a comment |category: |Views: 0

tags: another

Creating a Generic Collection Class with Sorting Support in .NET 2.0(kylefinley.net)

submitted by salimsalim(780) 5 years, 2 months ago

One of the coolest new features in .NET 2.0 is the introduction of Generics. For those of you that have been creating tons of strongly typed collections for your business objects I'm sure you had the same reaction I did when you heard about them. "Sweet!! Now I can stop generating and tweaking derived collection classes all over the place!!" (This is assuming you've all been using some sort of refactoring tool that can generate the collection classes for you, I hope you have.) OK, so now we know we can create strongly typed collections in our code. You might be wondering why I'm suggesting we still create a separate collection class and not just use the generic collections included in the System.Collections.Generic namespace. The idea is that we can create our own collections that support generics that provide us with specific needs that we might commonly use or need for a specific application. In this article I will present a simple collection class which both supports Generics as well as Sorting. read more...

add a comment |category: |Views: 100

tags: another

Replacing Recursion With a Stack(haacked.com)

submitted by HaackedHaacked(5105) 5 years, 2 months ago

This post demonstrates how a recursive method can be replaced with a non-recursive method by using a Stack collection. read more...

add a comment |category: |Views: 189

tags: another

What is a collection?(blogs.msdn.com)

submitted by CharlieCalvertCharlieCalvert(7875) 5 years, 7 months ago

Mads Torgersen has an intriguing new post on LINQ, collections and collection initializers. Mads is the language PM in the C# group at Microsoft and has a deep understanding of this subject. read more...

add a comment |category: |Views: 4

tags: another

Managing collections with functors(dotnetslackers.com)

submitted by simonebsimoneb(5450) 5 years, 9 months ago

An easy way of working with collections using the new features of C# 2.0. read more...

1 comment |category: |Views: 8

tags: another

.NET - The joy of generics(jaltiere.com)

submitted by dalzieldalziel(6230) 5 years, 9 months ago

"Generics have got to be one of my favorite additions to the 2.0 Framework." - What they are & how to use them read more...

add a comment |category: |Views: 2

tags: another

.NET - The joy of generics(jaltiere.com)

submitted by dalzieldalziel(6230) 5 years, 9 months ago

"Generics have got to be one of my favorite additions to the 2.0 Framework." - What they are & how to use them read more...

add a comment |category: |Views: 2

tags: another

Understanding the different generic collections in .NET(weblogs.asp.net)

submitted by back_endback_end(455) 5 years, 10 months ago

Learn when to use List<T>, BindingList<T> and Collection<T> read more...

1 comment |category: |Views: 31

tags: another