Skip to content

ToDynamicList/ToDynamicArray cannot actually cast to specified type in .net core 2 #129

@xumix

Description

@xumix

This fails

var keyVals = new List<int>().ToDynamicList(typeof(int));
var keyVals = new List<dynamic>().ToDynamicList(typeof(int));
var keyVals = new List<object>().ToDynamicList(typeof(int));
Unable to cast object of type 'System.Int32[]' to type 'System.Object[]'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions