dotnet / dotnet/dotnet-api-docs

Mention BinaryPrimitives on BitConverter page

Open
#8,281 0 comments 1 reaction 0 assignees View on GitHub
area-System.Runtime Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

I was completely unaware of the [BinaryPrimitives](https://docs.microsoft.com/en-us/dotnet/api/system.buffers.binary.binaryprimitives?view=net-6.0) class until just now and have been using [BitConverter](https://docs.microsoft.com/en-us/dotnet/api/system.bitconverter?view=net-6.0) but converting everything to little-endian. Another user was [also](https://github.com/dotnet/runtime/discussions/64953) unaware back in February. It seems like it could be advertised much better.

Could BinaryPrimitives be mentioned quite clearly on the BitConverter page (e.g. in a coloured info box)? It can be problematic having the conversion based on the machine's architecture, and it's probably not what most people want.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.