/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/Microsoft.Management.UI.Internal/ManagementList/Common/BooleanBoxes.cs
42 строки
866 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. namespace Microsoft.Management.UI.Internal { /// <summary> /// A class which returns the same boxed bool values. /// </summary> internal static class BooleanBoxes { private static object trueBox = true; private static object falseBox = false; internal static object TrueBox { get { return trueBox; } } internal static object FalseBox { get { return falseBox; } } internal static object Box(bool value) { if (value) { return TrueBox; } else { return FalseBox; } } } }