dotnet / dotnet/dotnet-api-docs

Readonly Structs are not shown as 'readonly struct'

Open
#4,976 1 comment 5 reactions 0 assignees View on GitHub
area-Infrastructure Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

If a struct is a 'readonly struct' it should show this in the docs. Take a look (for example) at [DateTime](https://docs.microsoft.com/en-us/dotnet/api/system.datetime?view=netcore-3.1) (.NET Core 3.1)

![image](https://user-images.githubusercontent.com/9335559/95866293-08c7be00-0d68-11eb-81c5-2a2b132da90a.png)

I expected:

```cs
public readonly struct DateTime : IComparable, IComparable, IConvertible, IEquatable, IFormattable, System.Runtime.Serialization.ISerializable
```

The **readonly** keyword is missing. This is a general problem for all readonly structs in the framework.

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.