Browse by Tags
All Tags »
C# (
RSS)
I decided to start a new column gathering all sorts of "what's wrong with this code?" snippets. Why? Its fun. Its good for interview questions. It starts discussions. More interesting than just talking (or writing) to myself. So, here's what I plan: I...
One of the developers in our team recently encountered a problem of getting the display name of the current user. The .NET framework exposes the user name through Environment .UserName or System.Security.Principal. WindowsIdentity .GetCurrent().Name but...
C# PM Luke Hoban has posted a simple C# Ray Tracer code that utilizes the new C# 3.0 language capabilities. On the same note, you can also check Scott Guthrie's posts about the new C# 3.0 language features: Automatic Properties, Object Initializer and...
TheServerSide.Net has published a very comprehensive LINQ\C# Learning Guide . Technorati : .NET , C# , LINQ
Here's a code snippet for a thread-safe (synchronized) StringDictionary class: class SyncStringDictionary : StringDictionary { /// <summary> /// Initializes a new instance of the SyncStringDictionary class. /// </summary> public SyncStringDictionary...