Skip to content

Add ref structs support #44

@vvdev

Description

@vvdev

Hello.

Currently when ref struct type is passed, it crashes with "ArgumentException: GenericArguments[0], 'SomeRefStructType, on 'ObjectLayoutInspector.TypeInspector+SizeComputer`1[T]' violates the constraint of type 'T'."

I have seen old bug about ref structs inspection issues, but maybe with use of NET9+ allows ref struct constraint plus some (hopefully) easy related fixes it could work now?
I use you library regularly, but really missing ref struct inspection possibility.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions