dotnet / dotnet/dotnet-api-docs

Readonly Members are not shown as 'readonly'

Open
#4,977 0 comments 1 reaction 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 member in a struct is readonly it should show this in the docs. Take a look (for example) at [System.Drawing.Point.ToString()](https://docs.microsoft.com/en-us/dotnet/api/system.drawing.point.tostring?view=net-5.0#System_Drawing_Point_ToString) (.NET 5.0)

![image](https://user-images.githubusercontent.com/9335559/95867157-221d3a00-0d69-11eb-9512-a69eb1ef6090.png)

I expected

```cs
public readonly override string ToString ();
```

The **readonly** keyword is missing. This is a general problem for all readonly members 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.