Could someone write this literally for me so I can understand how the casting is being carried out? The amount of brackets confuses me.
(Dictionary<String, String>)((Object[])e.Result)[1];
Was only able to find simple cast examples searching (possibly means I'm searching for wrong thing) which weren't very helpful.
Firstly, e.Result is casted to an array of type Object
(Object[])e.Result
Then, the item at index 1 in that array, [1]
, is casted to a Dictionary of type <string, string>
(Dictionary<String, String>)((Object[])e.Result)[1];
Hope that helped.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With