Skip to content

Remove StructLayout LayoutKind.Auto from DateTime #7719

@Tornhoof

Description

@Tornhoof

As suggested by @tannergooding in dotnet/csharplang#206 (comment) the [StructLayout(LayoutKind.Auto)] on DateTime is not necessary and might prevent the wider adoption of the Initial blittable proposal. DateTime only contains a single private long field.

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