dotnet / dotnet/dotnet-api-docs

Member signatures in C# don't follow the official formatting rules

Open
#6,790 3 comments 1 reaction 0 assignees View on GitHub
area-Infrastructure Pri3
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

E.g. the GC.AddMemoryPressure has the following signature format:

https://github.com/dotnet/dotnet-api-docs/blob/54e27a3d78dcbaedc38a38478cdaefa0be962936/xml/System/GC.xml#L112

Notice the space before the parentheses. This is not how C# signatures are formatted in the rest of the repo or samples. Instead of

```
public static void AddMemoryPressure (long bytesAllocated);
```

This should be:

```
public static void AddMemoryPressure(long bytesAllocated);
```

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.