public void PutString(string str) { if (moduleBeingBuilt != null) { writer.WriteUint(moduleBeingBuilt.GetFakeStringTokenForIL(str)); } }
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(); } }