vmethodptr не существует в текущем контексте - PullRequest
0 голосов
/ 11 октября 2018

После декомпиляции у меня возникает следующая ошибка в Visual Studio, и я не понимаю, почему.

Ошибка CS0103
Имя '__vmethodptr' не существует в текущем контексте RollCallConsole02 D:\ VS Projects \ RollCallConsole02 \ RunRollCall.cs 194 Активно

Эта часть кода экспортирует данные в файл отчета, чтобы их можно было распечатать.

Здесь вы можете найти скриншот Visual Studio

и ниже - текстовая версия кода.
Любая помощь будет признательна, и если у вас есть вопросы, пожалуйста, не стесняйтесь спрашивать,

public void Export(LocalReport report)
{
  string str1 = "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>8.27in</PageWidth><PageHeight>11.7in</PageHeight><MarginTop>0.15in</MarginTop><MarginLeft>0.35in</MarginLeft><MarginRight>0.15in</MarginRight><MarginBottom>0.15in</MarginBottom></DeviceInfo>";
  if (RunRollCall.LandscapeLayout == 1)
    str1 = "<DeviceInfo><OutputFormat>EMF</OutputFormat><PageWidth>11.7in</PageWidth><PageHeight>8.27in</PageHeight><MarginTop>0.15in</MarginTop><MarginLeft>0.35in</MarginLeft><MarginRight>0.15in</MarginRight><MarginBottom>0.15in</MarginBottom></DeviceInfo>";
  Warning[] warningArray = (Warning[]) null;
  this.m_streams = (IList<Stream>) new List<Stream>();
  LocalReport localReport = report;
  string str2 = "Image";
  string str3 = str1;
  RunRollCall runRollCall = this;
        // ISSUE: virtual method pointer
        CreateStreamCallback createStreamCallback = null;new CreateStreamCallback((object) runRollCall, __vmethodptr(runRollCall, CreateStream));
  ref Warning[] local = ref warningArray;
  localReport.Render(str2, str3, createStreamCallback, out local);
  IEnumerator<Stream> enumerator = null;
  try
  {
    enumerator = this.m_streams.GetEnumerator();
    while (enumerator.MoveNext())
      enumerator.Current.Position = 0L;
  }
  finally
  {
    enumerator?.Dispose();
  }
}
...