Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
 public Onix(OnixVersion forVersion)
     : this()
 {
     _version = forVersion;
 }