示例#1
0
 public override void VisitConstantRow(ConstantRow row)
 {
     row.Type   = (CilStrip.Mono.Cecil.Metadata.ElementType)m_binaryReader.ReadUInt16();
     row.Parent = Utilities.GetMetadataToken(CodedIndex.HasConstant,
                                             ReadByIndexSize(GetCodedIndexSize(CodedIndex.HasConstant)));
     row.Value = ReadByIndexSize(m_blobHeapIdxSz);
 }
        public ConstantRow CreateConstantRow(ElementType _type, MetadataToken _parent, uint _value)
        {
            ConstantRow row = new ConstantRow();

            row.Type   = _type;
            row.Parent = _parent;
            row.Value  = _value;
            return(row);
        }
 public override void VisitConstantRow(ConstantRow row)
 {
     m_binaryWriter.Write((ushort)row.Type);
     WriteMetadataToken(row.Parent, CodedIndex.HasConstant);
     WriteBlobPointer(row.Value);
 }