public override void VisitGenericParamRow(GenericParamRow row)
 {
     m_binaryWriter.Write(row.Number);
     m_binaryWriter.Write((ushort)row.Flags);
     WriteMetadataToken(row.Owner, CodedIndex.TypeOrMethodDef);
     WriteStringPointer(row.Name);
 }
 public override void VisitGenericParamRow(GenericParamRow row)
 {
     row.Number = m_binaryReader.ReadUInt16();
     row.Flags  = (Mono.Cecil.GenericParameterAttributes)m_binaryReader.ReadUInt16();
     row.Owner  = Utilities.GetMetadataToken(CodedIndex.TypeOrMethodDef,
                                             ReadByIndexSize(GetCodedIndexSize(CodedIndex.TypeOrMethodDef)));
     row.Name = ReadByIndexSize(m_stringsHeapIdxSz);
 }
        public GenericParamRow CreateGenericParamRow(ushort _number, GenericParameterAttributes _flags, MetadataToken _owner, uint _name)
        {
            GenericParamRow row = new GenericParamRow();

            row.Number = _number;
            row.Flags  = _flags;
            row.Owner  = _owner;
            row.Name   = _name;
            return(row);
        }
Пример #4
0
 public override void VisitGenericParamRow(GenericParamRow row)
 {
     m_binaryWriter.Write (row.Number);
     m_binaryWriter.Write ((ushort) row.Flags);
     WriteMetadataToken (row.Owner, CodedIndex.TypeOrMethodDef);
     WriteStringPointer (row.Name);
 }
Пример #5
0
 public GenericParamRow CreateGenericParamRow(ushort _number, GenericParamAttributes _flags, MetadataToken _owner, uint _name)
 {
     GenericParamRow row = new GenericParamRow ();
     row.Number = _number;
     row.Flags = _flags;
     row.Owner = _owner;
     row.Name = _name;
     return row;
 }
Пример #6
0
 public override void VisitGenericParamRow(GenericParamRow row)
 {
     row.Number = m_binaryReader.ReadUInt16 ();
     row.Flags = (Mono.Cecil.GenericParameterAttributes) m_binaryReader.ReadUInt16 ();
     row.Owner = Utilities.GetMetadataToken (CodedIndex.TypeOrMethodDef,
         ReadByIndexSize (GetCodedIndexSize (CodedIndex.TypeOrMethodDef)));
     row.Name = ReadByIndexSize (m_stringsHeapIdxSz);
 }