예제 #1
0
        /// <summary>
        /// Loads the node.
        /// </summary>
        /// <param name="io">[in] The node is read from io.</param>
        /// <exception cref="Columbus.ColumbusIOException">Throws ColumbusIOException if there is something wrong with the file.</exception>
        public override void load(IO binIo)
        {
            base.load(binIo);

            m_genericParameterKind = (Types.GenericParameterKind)binIo.readUByte1();

            uint _id;

            _id = binIo.readUInt4();
            while (_id != 0)
            {
                hasParameterConstraintContainer.AddLast(_id);
                _id = binIo.readUInt4();
            }
        }
예제 #2
0
 /// <summary>
 /// Constructor, only factory can instantiates nodes.
 /// </summary>
 /// <param name="nodeId">[in] The id of the node.</param>
 /// <param name="factory">[in] Poiter to the Factory the node belongs to.</param>
 public GenericParameter(uint nodeId, Factory factory) : base(nodeId, factory)
 {
     m_genericParameterKind          = Types.GenericParameterKind.gpkConstraint;
     hasParameterConstraintContainer = new LinkedList <uint>();
 }