/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/System.Management.Automation/cimSupport/cmdletization/MethodParametersCollection.cs
33 строки
996 B
Steve Lee
Update copyright notice to latest guidance (#12190)
24 мар 2020, 21:08
Не верифицирован
24 мар 2020, 21:08
b7cb335
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.ObjectModel; namespace Microsoft.PowerShell.Cmdletization { /// <summary> /// Collection of method parameters and their arguments /// used to invoke a method in an object model wrapped by <see cref="CmdletAdapter<TObjectInstance>"/> /// </summary> internal sealed class MethodParametersCollection : KeyedCollection<string, MethodParameter> { /// <summary> /// Creates an empty collection of method parameters. /// </summary> public MethodParametersCollection() : base(StringComparer.Ordinal, 5) { } /// <summary> /// Gets key for a method parameter. /// </summary> /// <param name="item"></param> /// <returns></returns> protected override string GetKeyForItem(MethodParameter item) { return item.Name; } } }