Schemin.AST.ScheminPort.ScheminPort C# (CSharp) Method

ScheminPort() public method

public ScheminPort ( Stream stream, PortType type ) : System
stream Stream
type PortType
return System
        public ScheminPort(Stream stream, PortType type)
        {
            this.Type = type;
            if (type == PortType.InputPort)
            {
                this.InputStream = new StreamReader(stream, Encoding.UTF8);
            }
            else
            {
                this.OutputStream = new StreamWriter(stream, Encoding.UTF8);
            }
        }

Same methods

ScheminPort::ScheminPort ( TextReader inputStream ) : System
ScheminPort::ScheminPort ( TextWriter outputStream ) : System