@@ -26,8 +26,7 @@ internal class VariableDetails : VariableDetailsBase
2626 /// Provides a constant for the dollar sign variable prefix string.
2727 /// </summary>
2828 public const string DollarPrefix = "$" ;
29-
30- protected object valueObject ;
29+ protected object ValueObject { get ; }
3130 private VariableDetails [ ] cachedChildren ;
3231
3332 #endregion
@@ -81,7 +80,7 @@ public VariableDetails(PSPropertyInfo psProperty)
8180 /// <param name="value">The variable's value.</param>
8281 public VariableDetails ( string name , object value )
8382 {
84- this . valueObject = value ;
83+ this . ValueObject = value ;
8584
8685 this . Id = - 1 ; // Not been assigned a variable reference id yet
8786 this . Name = name ;
@@ -109,7 +108,7 @@ public override VariableDetailsBase[] GetChildren(ILogger logger)
109108 {
110109 if ( this . cachedChildren == null )
111110 {
112- this . cachedChildren = GetChildren ( this . valueObject , logger ) ;
111+ this . cachedChildren = GetChildren ( this . ValueObject , logger ) ;
113112 }
114113
115114 return this . cachedChildren ;
@@ -173,7 +172,7 @@ private static string GetValueStringAndType(object value, bool isExpandable, out
173172 if ( value is bool )
174173 {
175174 // 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" ;
177176 }
178177 else if ( isExpandable )
179178 {
@@ -442,7 +441,7 @@ public VariableDetailsRawView(object value) : base(RawViewName, value)
442441 public override VariableDetailsBase [ ] GetChildren ( ILogger logger )
443442 {
444443 List < VariableDetails > childVariables = new ( ) ;
445- AddDotNetProperties ( valueObject , childVariables , noRawView : true ) ;
444+ AddDotNetProperties ( ValueObject , childVariables , noRawView : true ) ;
446445 return childVariables . ToArray ( ) ;
447446 }
448447 }
0 commit comments