@@ -26,8 +26,7 @@ internal class VariableDetails : VariableDetailsBase
26
26
/// Provides a constant for the dollar sign variable prefix string.
27
27
/// </summary>
28
28
public const string DollarPrefix = "$" ;
29
-
30
- protected object valueObject ;
29
+ protected object ValueObject { get ; }
31
30
private VariableDetails [ ] cachedChildren ;
32
31
33
32
#endregion
@@ -81,7 +80,7 @@ public VariableDetails(PSPropertyInfo psProperty)
81
80
/// <param name="value">The variable's value.</param>
82
81
public VariableDetails ( string name , object value )
83
82
{
84
- this . valueObject = value ;
83
+ this . ValueObject = value ;
85
84
86
85
this . Id = - 1 ; // Not been assigned a variable reference id yet
87
86
this . Name = name ;
@@ -109,7 +108,7 @@ public override VariableDetailsBase[] GetChildren(ILogger logger)
109
108
{
110
109
if ( this . cachedChildren == null )
111
110
{
112
- this . cachedChildren = GetChildren ( this . valueObject , logger ) ;
111
+ this . cachedChildren = GetChildren ( this . ValueObject , logger ) ;
113
112
}
114
113
115
114
return this . cachedChildren ;
@@ -173,7 +172,7 @@ private static string GetValueStringAndType(object value, bool isExpandable, out
173
172
if ( value is bool )
174
173
{
175
174
// Set to identifier recognized by PowerShell to make setVariable from the debug UI more natural.
176
- valueString = ( bool ) value ? "$true" : "$false" ;
175
+ valueString = ( bool ) value ? "$true" : "$false" ;
177
176
}
178
177
else if ( isExpandable )
179
178
{
@@ -442,7 +441,7 @@ public VariableDetailsRawView(object value) : base(RawViewName, value)
442
441
public override VariableDetailsBase [ ] GetChildren ( ILogger logger )
443
442
{
444
443
List < VariableDetails > childVariables = new ( ) ;
445
- AddDotNetProperties ( valueObject , childVariables , noRawView : true ) ;
444
+ AddDotNetProperties ( ValueObject , childVariables , noRawView : true ) ;
446
445
return childVariables . ToArray ( ) ;
447
446
}
448
447
}
0 commit comments