vendredi 3 août 2018

Type.GetType() throws when typeName represents an array type with an invalid size

The documentation for System.Type.Create(string, bool) says, that TypeLoadException is thrown when throwOnError is true and:

{...} typeName represents an array type with an invalid size

I wonder, what does it mean and how is it possible? Is is related to unmanaged code or to reflection-based working with array? Do I have to worry about this case when I want to get Type by its name?

Does anyone have an idea what is going on here?





Aucun commentaire:

Enregistrer un commentaire