I am going to summarize my problem into the following code snippet.
List<int> list = new List<int>() { 5, 56, 2, 4, 63, 2 };
Console.WriteLine(list.First());
Above code is working fine.
Now I tried the following
dynamic dList = list;
Console.WriteLine(dList.First());
but I am getting RuntimeBinderException.Why is it so?
this
is dynamic here, but if you land here, you should probably look at that question too