Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
And what do you store in o? Is it indexed? If it is indexed, then set this type in forich instead of object.
And yes - redo the question so that there are no screenshots!
You have to specify the element type Object in the foric, and Object does not have this[string] indexer (your cap).
How to solve:
a. Indicate the correct type (xs which one, it's not clear from the screen - throw the full code on gist or pastebin, or right here)
b. Through reflection a la
var type = listen.GetType();
var prop = type.GetProperty("currency");
var value = prop.GetValue(listen);
but I'm not sure if that's what's needed here. Task.Delay(100).GetAwaiter().GetResult();
Thread.Sleep(100);
await Task.Delay(100);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question