I have dynamic models in my dynamic list. attributes.blabla exist on
all my models.
dynamic reqList= new List<dynamic>();
//filled this list
List<string> blablaList = reqList.Select(x => x.attributes.blabla).ToList();
How can i take attributes.blabla as string list?
>Solution :
The main point is that reqList is not IEnumerable in your code. Just change the signature to List of dynamics.
List<dynamic> reqList= new List<dynamic>();
reqList.Add(new{ attributes = new{blabla = "qq"}});
List<string> blablaList = reqList.Select(x => x.attributes.blabla as string).ToList();