[Feature] Address Steve's new comments

This commit is contained in:
Dongbo Wang
2018-01-08 09:54:28 -08:00
parent 6ee608ff58
commit 01ecf4b3d3
2 changed files with 4 additions and 4 deletions
@@ -498,7 +498,7 @@ namespace System.Management.Automation.Configuration
/// <summary>
/// The GroupPolicy related settings used in PowerShell are as follows in Registry:
/// - Software\Policies\Microsoft\Windows\PowerShell -- { EnableScripts (0 or 1); ExecutionPolicy (string) }
/// - Software\Policies\Microsoft\PowerShellCore -- { EnableScripts (0 or 1); ExecutionPolicy (string) }
/// SubKeys Name-Value-Pairs
/// - ScriptBlockLogging { EnableScriptBlockLogging (0 or 1); EnableScriptBlockInvocationLogging (0 or 1) }
/// - ModuleLogging { EnableModuleLogging (0 or 1); ModuleNames (string[]) }
@@ -528,10 +528,10 @@ namespace System.Management.Automation.Configuration
/// "Transcription": {
/// "EnableTranscripting": true,
/// "EnableInvocationHeader": true,
/// "OutputDirectory": "c:\tmp"
/// "OutputDirectory": "c:\\tmp"
/// },
/// "UpdatableHelp": {
/// "DefaultSourcePath": "f:\temp"
/// "DefaultSourcePath": "f:\\temp"
/// },
/// "ConsoleSessionConfiguration": {
/// "EnableConsoleSessionConfiguration": true,
@@ -551,7 +551,7 @@ namespace System.Management.Automation
case nameof(Transcription): result = policies.Transcription; break;
case nameof(UpdatableHelp): result = policies.UpdatableHelp; break;
case nameof(ConsoleSessionConfiguration): result = policies.ConsoleSessionConfiguration; break;
default: Diagnostics.Assert(false, "Unreachable code"); break;
default: Diagnostics.Assert(false, "Should be unreachable code. Update this switch block when new PowerShell policy types are added."); break;
}
if (result != null) { return (T) result; }
}