/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/System.Management.Automation/engine/NullString.cs
45 строк
1 KB
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 System.Management.Automation.Language { /// <summary> /// This type is introduced to provide a way to pass null into a .NET method that has a string parameter. /// </summary> public class NullString { #region private_members // Private member for instance. #endregion private_members #region public_property /// <summary> /// This overrides ToString() method and returns null. /// </summary> public override string ToString() { return null; } /// <summary> /// This returns the singleton instance of NullString. /// </summary> public static NullString Value { get; } = new NullString(); #endregion public_property #region private Constructor /// <summary> /// This is a private constructor, meaning no outsiders have access. /// </summary> private NullString() { } #endregion private Constructor } }