Nullable Types in .NET Framework

Have you ever needed to add a null value to your integer, date & time,decimal or Boolean etc... data types?! I'm sure you may faced this desire before and you had to work around it to submit null value to those value data types. So .Net Framework 2.0 comes out with a great new feature and solution to your problem. It is The Nullable Value Types. Nullable type is constructed from the generic Nullable structure. By having this feature, you can submit null values to you database table field normally, like submitting a null DateTime value to a datetime field in your database table.…

Read this article

Generic(Collection) Usage in the .NET Framework

In the .Net Framework 1.x most of the collection classes store a data of type "System.Object", so you can store any types of data in the collection object or many types in the same collection object. This makes the addition of new items very easy, but when you need to extract a stored data from the collection you will first need to cast it back to its original data type. This cast had a performance impact especially when you are going to deal with the stored data repeatedly.…

Read this article

Escape Sequences and Verbatim Strings in C#

C# uses special escape sequences within a string to signify that what follows is to be treated differently. The special character is the backslash \. This character says to treat whatever follows it as though it were part of the string itself.…

Read this article

Generic Collections and Filtering

When dealing with collections the common question is how to filter them based on criteria.  The following are a few techniques used to accomplish this. A delegate is like a function pointer.  A…

Read this article