.NET news » C# C# Rss Feed

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >
download
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#
Deadlock monitor
Q: I'm using locks in my application to synchronize work on a bunch of threads. Unfortunately, I'm doing something incorrectly and my threads seem to just stop sometimes. I think I'm running into deadlocks, but I'm not sure how to find them. Is there any way I can do so programmatically? I'd like an exception to be thrown when a deadlock is encountered.
A: First, it's important to understand what a deadlock among threads is and the conditions that lead to one. Threads deadlock when waiting on each other to release some resources, but by performing that blocking wait, they're not releasing the resources the other threads need in order to unblock. The threads can't make any progress until the resources are released, but because they're not making progress, the resources will never be released, the threads are locked up, and thus "deadlock"...
21 Aug 2007, 19:00:00   Source: Deadlock monitor   Tags: C#
Simple Threading

This is a simple example taken from MSDN about multi-threading or, the way I like to say it, "Doing two things at once." I've modified the original example to make it easier to see how everything interacts. Easier for me anyway, since we are all different. One explanation may be adequate for some and not for others. I hope this can shine some light for some, as it did for me.

Far from being any type of Guru on the subject, I'll try and explain it the best I can from my point of view. I honestly don't understand everything about threads, delegates and so on. The important thing in my mind is that I understood enough to have it do what I wanted in the end. The next step is understanding the rest.

7 Aug 2007, 14:24:00   Source: Simple Threading   Tags: C#
< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >