private static IOnixProduct OnixProductFactory(OnixVersion version) { switch (version) { case OnixVersion.V21: return(new OnixProduct21()); case OnixVersion.V30: return(null); // currently not supported } throw new ArgumentOutOfRangeException("version"); }
public Onix(OnixVersion forVersion) : this() { _version = forVersion; }