示例#1
0
 public void MarkHiddenSP()
 {
     if (DebugInfoGenerator != null)
     {
         if (symbolDocumentWriter == null)
         {
             var symbolDocumentGeneratorType = typeof(DebugInfoGenerator).Assembly.GetTypes().FirstOrDefault(type => type.Name == "SymbolDocumentGenerator");
             var dict = (Dictionary <SymbolDocumentInfo, ISymbolDocumentWriter>)symbolDocumentGeneratorType.GetField("_symbolWriters", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(DebugInfoGenerator);
             symbolDocumentWriter = dict.Values.Single();
         }
         Il.MarkSequencePoint(symbolDocumentWriter, 0xFeeFee, 1, 0xFeeFee, 100);
         Il.Nop();
     }
 }