2021年1月6日星期三

Trying to extract value in C# code I can see in debugger [duplicate]

I'm working with some middleware I was given the hands me a variable called VariableValueCollection as you can see in the attached image. I know it contains a dictionary with keys and values but I can't figure out how to reference it. The debugger does see it though. In my screen shot, the first key is codeCampYearId and it's value is 9.

Here are some experiments I did that did not get my answers:

enter image description here

enter image description here

Any suggestions for how to access the data in c# code?

I'm not sure my middleware will help, but here it is anyhow.

       public RequestScope(ILogger<ConsoleQueryLogger> logger, IRequestContext context)          {              _logger = logger;              _context = context;          }            public void Dispose()          {              if (_context.Document is not null)  

enter image description here

https://stackoverflow.com/questions/65604970/trying-to-extract-value-in-c-sharp-code-i-can-see-in-debugger January 07, 2021 at 08:06AM

没有评论:

发表评论