Skip to content

Typeof for array types returns invalid data #1164

Closed
nanoframework/metadata-processor
#160
@torbacz

Description

@torbacz

Target name(s)

ESP32_REV0

Firmware version

1.8.0.629

Was working before? On which version?

Yes, No idea about version.

Device capabilities

No response

Description

Not quite sure what's going on. One time I've got "string" as type. It was working previously, because benchmarks for JSON project has int[] and short[] deserialization test.

Also, based on nanoFramework.Json.JsonConvert.PopulateObject typeof(int[]).GetElementType() should return "int[]" type.

How to reproduce

var type = typeof(short[]);
Console.WriteLine(type.ToString());
Console.WriteLine(type.Name);
Console.WriteLine(type.GetElementType().FullName);

Expected behaviour

No response

Screenshots

image

Aditional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions