DCSIMG
Ideas - עומר.נט

Browse by Tags

All Tags » Ideas (RSS)

Asynchronously Preloaded LINQ Queries

Posted Jul 29 2008, 11:04 PM by עומר ון קלוטן  

As a rule of thumb, when presented with two independent blocking I/O operations on more than one independent devices, it's best to use threads to create parallel operations, instead of waiting for a single synchronous operation to complete. That way, executing operations O 1 , ..., O n , each of...

SQL Server 2005 Analysis Services's ADOMD.NET Connection Pooling, or Lack Thereof

Posted May 27 2008, 11:33 AM by עומר ון קלוטן  

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 to the database, all of the metadata...

Visual Studio Feature Request: Generic Constraints Auto-Complete

Posted Apr 06 2008, 08:51 AM by עומר ון קלוטן  

I'd love to see this become a reality in the next version of Visual Studio: [Cross-Posted from Omer van Kloeten's .NET Zen , my English language weblog]

C# Feature Request: Type Member Level Generic Constraints

Posted Apr 02 2008, 11:57 AM by עומר ון קלוטן  

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( int something) : base (something) { // ... } }...
תגים:,

Linked List Insertion Capable of Surviving Abnormal Termination

Posted Nov 20 2007, 02:57 PM by עומר ון קלוטן  

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 : "I am trying to understand the data structure...

Generic Parameter Inference

Posted Oct 29 2007, 07:03 PM by עומר ון קלוטן  

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-typing wise, except that it doesn't. I...

Fallback Values for Backwards Compatible Enums

Posted Oct 10 2007, 12:15 PM by עומר ון קלוטן  

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, you want to be able to add a new value to the...
תגים:

Two Notes About Anonymous Types

Posted Apr 12 2007, 05:40 PM by עומר ון קלוטן  

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 ; } set { f2 = value ; } } // … public Tn pn { get {...