|
|
|
|
|
|
| | Total Hits: 54 | Today: 0 | Author: Inbar Gazit | Rating:  |
| |  Most introductory textbooks on computer science and programming include a chapter about collections. They may be called arrays or data structures, but the concept remains the same. The ability to tie a set of elements to one another in a formal data object is essential to modern programming techniques. In the Microsoft® .NET Framework, a lot of effort went into creating collection classes that are powerful and that address a variety of needs and styles.... |
| | Total Hits: 282 | Today: 0 | Author: Michael G | Rating:  |
| |  IEnumerable: This is a base System.Collection namespace interface. It enables foreach iterations over an underlying collection of objects. To be able to use foreach against a collection in a class or struct, that class or struct must implement the IEnumerable interface. The IEnumerable interface requires that you implement just one method: GetEnumerator(). GetEnumerator() returns an object that implements the IEnumerator interface (discussed below).... |
| | Total Hits: 81 | Today: 0 | Author: MSDN | Rating:  |
| |  IEnumerable must be implemented to support the ForEach semantics of Microsoft Visual Basic. COM classes that allow enumerators also implement this interface.... |
| | Total Hits: 68 | Today: 0 | Author: MSDN | Rating:  |
| |  Enumerators only allow reading the data in the collection. Enumerators cannot be used to modify the underlying collection.... |
| | Total Hits: 79 | Today: 0 | Author: MSDN | Rating:  |
| |  The IDictionary class is the base interface for collections of key-and-value pairs.Each element is a key-and-value pair stored in a DictionaryEntry object.Each association must have a unique key that is not a null reference (Nothing in Visual Basic), but the value of an association can be any object reference, including a null reference. The IDictionary interface allows the contained keys and values to be enumerated, but it does not imply any particular sort order.... |
| | Total Hits: 46 | Today: 0 | Author: MSDN | Rating:  |
| |  This interface is used in conjunction with the Array.Sort and Array.BinarySearch methods. It provides a way to customize the sort order of a collection.... |
| | Total Hits: 66 | Today: 0 | Author: MSDN | Rating:  |
| |  The ICollection interface is the base interface for classes in the System.Collections namespace.... |
| | Total Hits: 145 | Today: 0 | Author: MSDN | Rating:  |
| |  Each element is a key-and-value pair stored in a DictionaryEntry object.The objects used as keys in a Hashtable must implement or inherit the Object.GetHashCode and Object.Equals methods. If key equality were simply reference equality, the inherited implementation of these methods would suffice. Furthermore, these methods must produce the same results when called with the same parameters while the key exists in the Hashtable. Key objects must be immutable as long as they are used as keys in the ... |
| | Total Hits: 44 | Today: 0 | Author: MSDN | Rating:  |
| |  The IDictionaryEnumerator.Entry method returns an instance of this class.The foreach statement of the C# language (for each in Visual Basic) requires the type of each element in the collection. Since each element of a collection based on IDictionary is a key-and-value pair, the element type is not the type of the key or the type of the value. Instead, the element type is DictionaryEntry.... |
| | Total Hits: 82 | Today: 0 | Author: MSDN | Rating:  |
| |  Each element is a key-and-value pair stored in a DictionaryEntry object.[C#] The foreach statement of the C# language requires the type of each element in the collection. Since each element of the DictionaryBase is a key-and-value pair, the element type is not the type of the key or the type of the value. Instead, the element type is DictionaryEntry.... |
| | Total Hits: 36 | Today: 0 | Author: MSDN | Rating:  |
| |  This class is the default implementation of the IComparer interface. The CaseInsensitiveComparer class is the implementation of the IComparer interface that performs case-insensitive string comparisons.... |
| | Total Hits: 73 | Today: 0 | Author: MSDN | Rating:  |
| |  A CollectionBase instance is always modifiable. See ReadOnlyCollectionBase for a read-only version of this class.... |
| | Total Hits: 37 | Today: 0 | Author: MSDN | Rating:  |
| |  CaseInsensitiveHashCodeProvider implements the IHashCodeProvider interface supporting case-insensitive comparisons on strings, just as CaseInsensitiveComparer implements the IComparer interface supporting case-insensitive comparisons on strings.... |
| | Total Hits: 52 | Today: 0 | Author: MSDN | Rating:  |
| |  CaseInsensitiveComparer implements the IComparer interface supporting case-insensitive comparisons on strings, just as CaseInsensitiveHashCodeProvider implements the IHashCodeProvider interface supporting case-insensitive comparisons on strings.... |
| | Total Hits: 58 | Today: 0 | Author: MSDN | Rating:  |
| |  The size of a BitArray is controlled by the client; indexing past the end of the BitArray throws an ArgumentException.... |
| | Total Hits: 170 | Today: 0 | Author: MSDN | Rating:  |
| |  The capacity of an ArrayList is the number of elements the list can hold. As elements are added to an ArrayList, the capacity is automatically increased as required through reallocation. The capacity can be decreased by calling TrimToSize or by setting the Capacity property explicitly.... |
| | Total Hits: 73 | Today: 0 | | Rating:  |
| |  The somewhat surprising answer is not much. The only real difference is that a Console application sends output to a Console Window, and a Windows Form application doesn't. However, this is only the default behavior. There's no reason a Windows Forms application can't have a console window.... |
| | Total Hits: 142 | Today: 0 | | Rating:  |
| |  With it comes to retrieving data in an n-tier application. We often design our systems in a way that forces us to figure out a different way to get each type of data, calling a different service, object, or method each time. To get customer data, we call the GetCustomer method of the CustomerService. To get product data, we call the Product method of a WebProduct service. This can get confusing!... |
| | Total Hits: 106 | Today: 0 | | Rating:  |
| |  The .NET Framework class libraries provide you with a huge number of classes—and a steep learning curve! The key to effectively leveraging the integration of these classes, and flattening that learning curve, is interfaces.... |
| | Total Hits: 1506 | Today: 0 | | Rating:  |
| |  A simple class (DALQueryBuilder, see source code in the last article) that would make me type less code to update an object.... |
|
|
|
|
|
|