Ejemplo n.º 1
0
 public void PutString(string str)
 {
     if (moduleBeingBuilt != null)
     {
         writer.WriteUint(moduleBeingBuilt.GetFakeStringTokenForIL(str));
     }
 }
Ejemplo n.º 2
0
        public void PutOpcode(Microsoft.Cci.OperationCode opcode, string str)
        {
            PutOpcode(opcode);

            var opcodeInfo = Microsoft.Cci.PeWriter.OperationCodeInfo(opcode);

            switch (opcodeInfo.OperandType)
            {
            case OperandType.InlineString:
                writer.WriteUint(moduleBeingBuilt.GetFakeStringTokenForIL(str));
                break;

            default:
                throw new NotImplementedException();
            }
        }