Skip to content

Commit 965b45e

Browse files
author
Kapil Borle
committed
Add InformationPreference to special variables
1 parent 0fc6447 commit 965b45e

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

Engine/SpecialVars.cs

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,27 +96,30 @@ static SpecialVars()
9696
internal const string WarningPreference = "WarningPreference";
9797
internal const string ConfirmPreference = "ConfirmPreference";
9898
internal const string ProgressPreference = "ProgressPreference";
99+
internal const string InformationPreference = "InformationPreference";
99100

100-
internal static readonly string[] PreferenceVariables = new string[]
101-
{
102-
DebugPreference,
103-
VerbosePreference,
104-
ErrorActionPreference,
105-
WhatIfPreference,
106-
WarningPreference,
101+
internal static readonly string[] PreferenceVariables = new string[]
102+
{
103+
DebugPreference,
104+
VerbosePreference,
105+
ErrorActionPreference,
106+
WhatIfPreference,
107+
WarningPreference,
107108
ConfirmPreference,
108-
ProgressPreference
109+
ProgressPreference,
110+
InformationPreference
109111
};
110112

111-
internal static readonly Type[] PreferenceVariableTypes = new Type[]
112-
{
113-
/* DebugPreference */ typeof(ActionPreference),
114-
/* VerbosePreference */ typeof(ActionPreference),
115-
/* ErrorPreference */ typeof(ActionPreference),
116-
/* WhatIfPreference */ typeof(SwitchParameter),
117-
/* WarningPreference */ typeof(ActionPreference),
118-
/* ConfirmPreference */ typeof(ConfirmImpact),
113+
internal static readonly Type[] PreferenceVariableTypes = new Type[]
114+
{
115+
/* DebugPreference */ typeof(ActionPreference),
116+
/* VerbosePreference */ typeof(ActionPreference),
117+
/* ErrorPreference */ typeof(ActionPreference),
118+
/* WhatIfPreference */ typeof(SwitchParameter),
119+
/* WarningPreference */ typeof(ActionPreference),
120+
/* ConfirmPreference */ typeof(ConfirmImpact),
119121
/* ProgressPreference */ typeof(Enum),
122+
/* InformationPreference */ typeof(ActionPreference),
120123
};
121124

122125
internal enum AutomaticVariable

0 commit comments

Comments
 (0)