Windows-powershell / PowerShell-master /src /System.Management.Automation /engine /AutomationNull.cs
Download PowerShell-master/src/System.Management.Automation/engine/AutomationNull.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/AutomationNull.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/System.Management.Automation/engine/AutomationNull.cs
-
curl -L -o AutomationNull.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/AutomationNull.cs
1.08 kB
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| namespace System.Management.Automation.Internal | |
| { | |
| /// <summary> | |
| /// This is a singleton object that is used to indicate a void return result. | |
| /// </summary> | |
| /// <remarks> | |
| /// It's a singleton class. Sealed to prevent subclassing. Any operation that | |
| /// returns no actual value should return this object AutomationNull.Value. | |
| /// Anything that evaluates a PowerShell expression should be prepared to deal | |
| /// with receiving this result and discarding it. When received in an | |
| /// evaluation where a value is required, it should be replaced with null. | |
| /// </remarks> | |
| public static class AutomationNull | |
| { | |
| // Private member for Value. | |
| /// <summary> | |
| /// Returns the singleton instance of this object. | |
| /// </summary> | |
| public static PSObject Value { get; } = new PSObject(); | |
| } | |
| } | |