Represents a map of Types to identifiers for shorter bitstream references.
Inheritance: ISerializable
Exemplo n.º 1
0
        public SerializationContext(TypeMap map)
        {
            if (map == null)
                throw new ArgumentNullException ("map");

            this.map = map;
        }
Exemplo n.º 2
0
        public SerializationContext(IConnection connection, Protocol protocol, TypeMap map)
            : this(map)
        {
            if (connection == null)
                throw new ArgumentNullException ("connection");
            if (protocol == null)
                throw new ArgumentNullException ("protocol");

            Connection = connection;
            Protocol = protocol;
        }