MegaBites-AI/Windows-powershell
0372
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4namespace System.Management.Automation.Internal5{6 /// <summary>7 /// This is a singleton object that is used to indicate a void return result.8 /// </summary>9 /// <remarks>10 /// It's a singleton class. Sealed to prevent subclassing. Any operation that11 /// returns no actual value should return this object AutomationNull.Value.12 /// Anything that evaluates a PowerShell expression should be prepared to deal13 /// with receiving this result and discarding it. When received in an14 /// evaluation where a value is required, it should be replaced with null.15 /// </remarks>16 public static class AutomationNull17 {18 #region private_members19 20 // Private member for Value.21 22 #endregion private_members23 24 #region public_property25 26 /// <summary>27 /// Returns the singleton instance of this object.28 /// </summary>29 public static PSObject Value { get; } = new PSObject();30 31 #endregion public_property32 }33}34 