Skip to content

False positive for UnsupportedTypeMapping on byte array fields #30

@jonathanalgar

Description

@jonathanalgar

Fields of type byte[] in OSStructure-decorated structs are being wrongly reported as having an incompatible DataType mapping.

Although byte[] is the correct .NET type for OSDataType.BinaryData, the analyzer’s type comparison does not properly account for array types, leading to false diagnostics.

Image
(Code: https://github.com/agmv/AGV.ZXing)

Thanks @agmv for reporting.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions