Ejemplo n.º 1
0
        public static IPipeServerConfig CopyInh(IPipeServerConfig src)
        {
            if (src == null)
            {
                return(null);
            }

            if (src.GetType() == typeof(PipeServerConfigImplement))
            {
                return(((PipeServerConfigImplement)src).Copy());
            }
            if (src.GetType() == typeof(PipeServerConfigImplement))
            {
                return(((PipeServerConfigImplement)src).Copy());
            }

            throw new Exception("Unknown type: " + src.GetType().ToString());
        }