/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/CSharp/Portable/Syntax/ParameterSyntax.cs
25 строк
774 B
Julien Couvreur
Extensions: Close some tracked follow-ups (#80527)
07 окт 2025, 01:00
Не верифицирован
07 окт 2025, 01:00
ff59510
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.CodeAnalysis.CSharp.Syntax { public partial class ParameterSyntax { internal bool IsArgList { get { return this.Type == null && this.Identifier.ContextualKind() == SyntaxKind.ArgListKeyword; } } private partial void Validate() { if (Type is null && Identifier.IsKind(SyntaxKind.None)) { throw new System.ArgumentException(CSharpResources.ParameterRequiresTypeOrIdentifier); } } } }