Subscribe to
Posts
Comments

Archive for May, 2007

It’s funny, but Curiously recurring template pattern works in C#. Well, works, but it’s not possible to implement static methods calls, because C# interfaces does not support them. Anyway, here is a snippet:

using System;

namespace A {

interface IA {
void Test();
}

class Base<T> where T : class, IA {
[…]