.NET news » C# C# Rss Feed

download
C# Basic Operator Overloading
The eighth article in the C# Object-Oriented Programming tutorial describes a third overloading technique. By overloading the functionality of operators, the operation of the standard operators including + and - can be defined for new classes.
24 Nov 2007, 09:51:51   Source: C# Basic Operator Overloading   Tags: C#
Dynamic Properties implementation using C# generics
Some programming tasks require dynamic nature of properties exposed by an object. E.g. it might be needed to access object property by a given key, it might be needed to get all object properties and iterate over them. Dynamic properties are useful when you need to manage them at runtime, when your object is already instantiated. In this article we are going to create simple implementation of dynamic properties using C# programming language. We'll use generics for our dynamic properties to make the implementation more flexible and to avoid boxing operations when value types are used for underlying property values.
30 Oct 2007, 22:30:00   Source: Dynamic Properties implementation using C# generics   Tags: C#
Marking C# Code As Obsolete
As class libraries evolve over time, new functionality will be added and existing classes, methods and properties will be improved. Sometimes this means that older code is superseded and it is preferable that it is marked as obsolete and no longer used.
26 Oct 2007, 00:00:07   Source: Marking C# Code As Obsolete   Tags: C#
Localizing .NET Enums
Describes a technique for displaying localized text for enums
17 Oct 2007, 22:44:00   Source: Localizing .NET Enums   Tags: C#
Generic Gap Buffer
A list-style collection for fast insert and remove operations.
17 Oct 2007, 09:44:00   Source: Generic Gap Buffer   Tags: C#
Working with Nullable Types in C#
Use nullable types to assign null values to value types and avoid run-time exceptions in your applications.
12 Oct 2007, 20:43:55   Source: Working with Nullable Types in C#   Tags: C#
Enhancing C# Enums
How to make a class look like an enum with added functionality
9 Oct 2007, 12:13:00   Source: Enhancing C# Enums   Tags: C#
Implementing IEquatable Properly
Explains how to properly implement the IEquatable interface.
21 Sep 2007, 13:42:00   Source: Implementing IEquatable Properly   Tags: C#
Nested Property Binding

I'm currently in the process of developing an object relation mapper for use with Microsoft SQL server. During this process I've been faced with a number of challenges related to the fact that I will be working with objects rather than datatables. If you've ever tried binding a datagrid to a list of objects, I'm sure you have come across the problem where you wanted to display properties that is not part of the object type itself.

This is normally referred to as nested property binding. Many people create special view objects when this becomes a necessity. I wanted a smoother solution and I wanted it design time. The component I've created derives from Bindingsource and is called ObjectBindingSource. As the name implies the components is designed to be working with objects and not datasets/datatables..

4 Sep 2007, 04:06:00   Source: Nested Property Binding   Tags: Examples C#
Simple Delegates In C#
This Article will teach you about C# delegates in the most simpliest way to understand (for newbies).
21 Aug 2007, 19:22:00   Source: Simple Delegates In C#   Tags: C#