C#/Curiously recurring template pattern
Posted in C# on May 27th, 2007 2 Comments »
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 {
[…]