Omer van Kloeten's .NET Zen

Programming is life, the rest is mere details

News

Omer van Kloeten's Facebook profile

Get Firefox

.NET Resources

Articles :: CodeDom

Articles :: nGineer

Culture

Projects

Browse by Tags

All Tags » Ideas (RSS)
SQL Server 2005 Analysis Services's ADOMD.NET Connection Pooling, or Lack Thereof
First of all, if you've come here looking for how to activate connection pooling when using SSAS 2005 via ADOMD.NET, you're in for a little surprise - there is none by design . Loading a new connection can take up a long time, since with every new session...
Visual Studio Feature Request: Generic Constraints Auto-Complete
I'd love to see this become a reality in the next version of Visual Studio:
C# Feature Request: Type Member Level Generic Constraints
The Basic Need Take the following code: public abstract class Base { protected Base( int something) { // ... } } public class Derived : Base { public Derived( int something) : base (something) { // ... } } public class Derived2 : Base { public Derived2...
Posted: Apr 02 2008, 11:57 AM by Omer van Kloeten | with 17 comment(s)
Filed under: ,
Linked List Insertion Capable of Surviving Abnormal Termination
I just finished a short conversation with Aaron Randall from London who used the little Windows Live Messenger Flash application in my sidebar (oh, how I love thee, Internets) to ask me a question he had about linked lists after reading one of my posts...
Generic Parameter Inference
public static void Do<T>( this TBase value) where T : BaseClass <TBase> The above line of code does not compile. I've been mulling over this for about half an hour and have not come up with a single logical reason why it shouldn't, strong...
Fallback Values for Backwards Compatible Enums
Came up with a nice idea while driving today about versioning enums. Say you have an application that saves files. Every file has a font specific to it and it is saved as the following enum (v1.0): public enum Font { Tahoma, Arial, } When v1.1 comes out...
Posted: Oct 10 2007, 12:15 PM by Omer van Kloeten | with 1 comment(s)
Filed under:
Extending the Idea of Extension Methods
I've had my fair share of disappointments when I found that the closest common denominator between types I wanted to use was object , leading me to write code in a level I did not like, like: class A; // A and B are both imported classes with no class...
Two Notes About Anonymous Types
The example of anonymous types from the C# 3.0 specification document is as follows: class __Anonymous1 { private T1 f1 ; private T2 f2 ; // … private Tn fn ; public T1 p1 { get { return f1 ; } set { f1 = value ; } } public T2 p2 { get { return f2 ; ...
Connect the Dots CAPTCHA
Remember the game Connect the Dots we used to play as kids? It was fun and easy and you could color the pretty bunny after you were done. This gave me an idea - a computer program doesn't know how to play Connect the Dots very well unless it's programmed...
Hierarchical Linq Queries
After reading Bill Wagner's excellent introduction to Linq , I really liked what I saw and decided that I wanted to create an extension method as an exercise. I sat and thought what I would have wanted from Linq and decided I wanted to write a method...
More Posts Next page »