Browse by Tags
All Tags »
Ideas (
RSS)
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...
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...
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]
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) { // ... } }...
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...
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...
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...
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 {...