public static IFunction GetConcreteFunction(FunNumber functionNumber) { switch (functionNumber) { case FunNumber.F1: return new Function1(); case FunNumber.F1A: return new Function1A(); case FunNumber.F2: return new Function2(); case FunNumber.F3: return new Function3(); default: throw new NotImplementedException("This kind of function is not supported."); } }
public static IFunction GetConcreteFunction(FunNumber functionNumber) { switch (functionNumber) { case FunNumber.F1: return(new Function1()); case FunNumber.F1A: return(new Function1A()); case FunNumber.F2: return(new Function2()); case FunNumber.F3: return(new Function3()); default: throw new NotImplementedException("This kind of function is not supported."); } }