public interface ISeries<T>
class ByTwos<T> : ISeries<T>
public delegate T IncByTwo(T v);
public ByTwos(IncByTwo incrMeth)
public void SetStart(T v)
public ThreeD(int a,int b, int c)
static int IntPlusTwo(int v)
static double IntPlusTwo(double v)
static ThreeD ThreesPlus(ThreeD v)
if (v == null) return new ThreeD(0, 0, 0);
else return new ThreeD(v.x + 2, v.y + 2, v.z + 2);
public static void Main()
Console.WriteLine("Hello World");