Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
SQL Server

Home >Search > Articles & Samples > C-Sharp > Collection

What's New - What's Hot
Collection of Regular Expression  Version: 0.00     Price: $0.00  
Total Hits: 13  |  Today: 0Author: Shrikant S      Rating:  
Read Reviews | Write Review |  Your Rating: 

This allows you to validate first names and last names in separate fields. Instead of validating a full name in one field....

Avoid Exposing Collections Directly as Properties  Version: 0.00     Price: $0.00  
Total Hits: 11  |  Today: 0Author: Steven Smith      Rating:  
Read Reviews | Write Review |  Your Rating: 

.NET makes it easy to create strongly typed collections and expose them as properties of our classes. However, this generally results in a design that fails at encapsulation and exposes too much of the class's internal state. Learn a few simple techniques to keep from going down this path in this article....

Bi-Directional SkipList in C#  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: David Jeske      Rating:  
Read Reviews | Write Review |  Your Rating: 

BDSkipList is a generic bi-directional thread-safe sorted-map implemented as a SkipList in C#. It contains an efficient subset scanning interface, IScanner/IScannable....

A Simple and Generic sorting technique for your business object collection  Version: 0.00     Price: $0.00  
Total Hits: 13  |  Today: 0Author: SreeKrishna      Rating:  
Read Reviews | Write Review |  Your Rating: 

Stop writing IComparer classes to sort your custom collections! This article discusses sorting of a user defined collection object based on any of the properties of the business entity. This sorting technique is generic for all the collection objects. You can sort your collection based on their properties....

ThreadSafeObservableCollection  Version: 0.00     Price: $0.00  
Total Hits: 24  |  Today: 0Author: Sacha Barber      Rating:  
Read Reviews | Write Review |  Your Rating: 

As part of an ongoing article I am just about to finish, I needed a thread safe ObservableCollection. Now the native .NET framework doesn’t have one of those, but luckily it supplies you with the right job to create one using some of the Threading APIs.Here is what I came up with....

Hot Swap Thread Safe Collections  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Deyan Timnev      Rating:  
Read Reviews | Write Review |  Your Rating: 

With the growth of multi-core processors, the issue of multi-thread access to data is becoming very important. This article presents a simple, application specific solution to the problem of accessing a generic .NET data collection concurrently. Despite being designed prior to the release of the .NET 4.0 multi-thread capable collections, the Hot Swap collections still offer a viable alternative to the System.Collections.Concurrent namespace offerings. As with any tool, it is most important to u...

Passing data between layers using Generic list collection  Version: 0.00     Price: $0.00  
Total Hits: 26  |  Today: 0Author: SheoNarayan      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is for beginners who want to know how to use .NET generics to pass data between different layers. If you do not know about generic list, please go thorugh this article In brief, List class is a generic equivalent of ArrayList class....

Controlling Collation Order On DB2/400  Version: 0.00     Price: $0.00  
Total Hits: 23  |  Today: 0Author: Joe Rattz      Rating:  
Read Reviews | Write Review |  Your Rating: 

I recently had the need to control collation order on DB2/400. Essentially I had a multi-column data grid on a web page and one of the columns contained data that was alphanumeric. The data in the data grid was ordered on this column. By default, on DB2/400 the collation order for sorting the table I was querying is determined by the hexadecimal EBCDIC value....

Add Method (Collection Object)  Version: 0.00     Price: $0.00  
Total Hits: 21  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Optional. An expression that specifies a relative position in the collection. The element to be added is placed in the collection before the element identified by the Before argument. If Before is a numeric expression, it must be a number from 1 through the value of the collection's Count Property (Collection Object). If Before is a String expression, it must correspond to the key string specified when the element being referred to was added to the collection. You cannot specify both Before and ...

ICollection Generic Interface  Version: 0.00     Price: $0.00  
Total Hits: 16  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The ICollection interface is the base interface for classes in the System.Collections.Generic namespace.

The ICollection interface extends IEnumerable; IDictionary and IList are more specialized interfaces that extend ICollection. A IDictionary implementation is a collection of key/value pairs, like the Dictionary class. A IList implementation is a collection of values, and its members can be accessed by index, like the List class....

PropertGrid Collection Events  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Ali BaderEddin      Rating:  
Read Reviews | Write Review |  Your Rating: 

You are using the PropertyGrid control to allow the user to edit the properties of an object at run-time from the UI. This works great and is in fact very reliable since this is the same control used by Visual Studio to display the properties of controls. Now that you are letting the user update the object directly, you’d like to get a PropertyValueChanged event whenever the user changes a property, so you can respond to the user’s action. You’ll be able to do that by adding a PropertValueChange...

How to make a sortable DataGrid for custom IBindable collections  Version: 0.00     Price: $0.00  
Total Hits: 30  |  Today: 0Author: Koen Vingerhoets      Rating:  
Read Reviews | Write Review |  Your Rating: 

It was a dark and stormy day... and my boss asked the option to sort a DataGrid. If bound to a DataTable, the easy solution is to sort the DataView. Alas. My application uses LLBLGen Pro to build a Data Access Layer on top of the database. Initially, we weren't to keen to use LLBLGen, basically because we didn't get the full power of that application. But now I was stuck with a bunch of custom collections, on which no sort was provided. My colleague that wrote those parts even commented: don't u...

Serializable Generic Collection     
Total Hits: 106  |  Today: 0Author: behnam usefy      Rating:  
Read Reviews | Write Review |  Your Rating: 

When we want to made XmlSerializable object we must Implement it from IXmlSerializable. and then we must implement 3 methods (GetSchema,ReadXml,WriteXml). In GetSchema we must return a string that contain XML Schema about this object (We Leave it blank in this version!). ReadXml method will contain statements that deserialize Xml to Objects and finaly in WriteXml we serialize our Collection into Xml....

Advanced Collection for VB6 Application settings     
Total Hits: 89  |  Today: 0Author: Sabarinathan Arthanari      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, I tried to implement following things,

1. Manipulate application configuration data and settings as Name Value collection.
2. Provide advanced GetSetting and SaveSetting functions
3. Provide advanced INI file handling
4. Implement escape sequence characters for settings...

Buffered pool Manager class     
Total Hits: 133  |  Today: 0Author: wuzhiqiang      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article I'm going to talk about bufferd pool of any Object and an implementation I have written in C#....

A non-generic IList implementation without any Boxing and Unboxing     
Total Hits: 67  |  Today: 0Author: gUrM33T      Rating:  
Read Reviews | Write Review |  Your Rating: 

UPDATE (May 18, 2009): The title of this article has created some confusion for fellow CP members, the explanation of which is that my intention was NOT to avoid .NET generics completely but, to present an implementation of "non-generic System.Collections.IList interface" without boxing and unboxing....

Iterate two Containers at once with Pairenumerator     
Total Hits: 92  |  Today: 0Author: Robert Köpferl      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes an enumerable class that is able to iterate two enumerable collections at once, either until both or one is done....

ATL Collection Wizard     
Total Hits: 71  |  Today: 0Author: David Peterson      Rating:  
Read Reviews | Write Review |  Your Rating: 

One evening, tired of creating COM collections by hand, I created an object wizard to handle the grunt work for me. This wizard will implement the popular ICollectionOnSTLImpl interface, providing a few enhancements for a collection. The code this wizard writes was inspired by the book "ATL Internals" (Addison-Wesley Pub Co; ISBN: 0201695898). I trust what the authors in that book wrote and haven't stopped to try to understand it all. But nonetheless...on with the wizard....

Sorting Collections by Multiple Properties     
Total Hits: 89  |  Today: 0Author: Natan Vivo      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you work with .NET and commercial applications, you probably have many objects to represent your business entities, like Customers, Employees, Products and so on. When retrieving data from a data store (like a database, for example), we usually ask for the data in a specific order, so that the underlying engine can do the work to order it for us, and then we populate our objects in the correct order....

How to: Bind to a Collection and Display Information Based on Selection     
Total Hits: 41  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

In a simple master-detail scenario, you have a data-bound ItemsControl such as a ListBox. Based on user selection, you display more information about the selected item. This example shows how to implement this scenario....

1  2  3  4  5  6  7  8  Next >> 

Disclaimer - Privacy
© 2002-2017