dotnet / dotnet/dotnet-api-docs

Use of String (upper case 'S') vs. string (lower case 's')

Open
#1,378 2 comments 0 reactions 0 assignees View on GitHub
area-System.Runtime dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

It seems to me that the 'string' C# keyword is used interchangeably with the System.String class.

I believe these are different, and that if a method signature returns a 'string' type, that would be different than a System.String struct or class instance.

Are the various uses of String vs. string consistent and correct in every case on the page?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: dc60ab93-74c9-2404-67dd-1dc9017c0dc9
* Version Independent ID: feaee2f1-85dc-7793-b693-853e95f54f39
* Content: [String.TrimStart Method (System)](https://docs.microsoft.com/en-us/dotnet/api/system.string.trimstart?view=netframework-4.7.2)
* Content Source: [xml/System/String.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System/String.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

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.