/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/csharp/language-reference/tokens/snippets/comments.cs
30 строк
768 B
Bill Wagner
Add syntax reference for comments (#32989)
13 дек 2022, 00:04
Не верифицирован
13 дек 2022, 00:04
ed0490b
Код
Авторство
О чём код?
public class C { // <ExampleComments> // This is a single line comment. /* This could be a summary of all the code that's in this class. You might add multiple paragraphs, or links to pages like https://learn.microsoft.com/dotnet/csharp. You could even include emojis. This example is 🔥 Then, when you're done, close with */ // </ExampleComments> // <InlineComment> public static int Add(int left, int right) { return left /* first operand */ + right /* second operand */; } // </InlineComment> public static int Increment(int source) { // <LineEndingComment> return source++; // increment the source. // </LineEndingComment> } }