/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/tools/TestAlc/root/RootCommand.cs
39 строк
718 B
Dongbo Wang
Refactor module assembly loading logic to allow the whole module to be loaded in a custom ALC (#16889)
24 фев 2022, 02:01
Не верифицирован
24 фев 2022, 02:01
e1f52dd
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; namespace Test.Isolated.Root { [Cmdlet("Test", "RootCommand")] public class TestRootCommand : PSCmdlet { [Parameter(Mandatory = true)] public Red Param { get; set; } protected override void ProcessRecord() { WriteObject(Param.Name); } } public class Red { public string Name { get; } public Red(string name) { Name = name; } } public class Yellow { public string Id { get; } public Yellow(string id) { Id = id; } } }