Skip to content

Missing API: Guid.TryWriteBytes(..., out int bytesWritten) #30940

Closed
@GrabYourPitchforks

Description

@GrabYourPitchforks

Per API review, our Guid.TryWriteBytes method should have an overload which outs the number of bytes written to the destination buffer.

@tannergooding - you had also mentioned adding a similar API to decimal, but I don't see offhand which overload would be affected.

namespace System
{
    public partial struct Guid
    {
        public bool TryWriteBytes(Span<byte> destination, out int bytesWritten);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions