Skip to content

Remove StructLayout LayoutKind.Auto from DateTimeOffset #7720

@Tornhoof

Description

@Tornhoof

As suggested by @tannergooding in dotnet/csharplang#206 (comment) the [StructLayout(LayoutKind.Auto)] on DateTimeOffset is not necessary and might prevent the wider adoption of the Initial blittable proposal. DateTimeOffset is composed from a DateTime and a short.

This is related to Issue #7719.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.DateTimeenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions