/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Shared/CommandLineUtils/CommandLine/CommandArgument.cs
28 строк
707 B
Brennan
Add rule to seal internal and private types (#41457)
05 май 2022, 19:26
Не верифицирован
05 май 2022, 19:26
3ea008c
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Generic; using System.Linq; namespace Microsoft.Extensions.CommandLineUtils; internal sealed class CommandArgument { public CommandArgument() { Values = new List<string>(); } public string Name { get; set; } public bool ShowInHelpText { get; set; } = true; public string Description { get; set; } public List<string> Values { get; private set; } public bool MultipleValues { get; set; } public string Value { get { return Values.FirstOrDefault(); } } }