// Token: 0x06001684 RID: 5764 RVA: 0x000553A8 File Offset: 0x000535A8
 private static string GetPSValue(object value, bool decorateArray)
 {
     if (value == null)
     {
         return("$null");
     }
     if (value is IEnumerable && !(value is string))
     {
         bool          flag          = true;
         StringBuilder stringBuilder = new StringBuilder();
         if (decorateArray)
         {
             stringBuilder.Append("@(");
         }
         foreach (object value2 in ((IEnumerable)value))
         {
             if (!flag)
             {
                 stringBuilder.Append(',');
             }
             flag = false;
             stringBuilder.Append(SetupLoggingModule.GetPSValue(value2, true));
         }
         if (decorateArray)
         {
             stringBuilder.Append(")");
         }
         return(stringBuilder.ToString());
     }
     return(string.Format("'{0}'", value.ToString().Replace("'", "''")));
 }
        // Token: 0x06001681 RID: 5761 RVA: 0x00055284 File Offset: 0x00053484
        private void WriteCommandParams(object sender, EventArgs e)
        {
            TaskInvocationInfo invocationInfo = this.context.InvocationInfo;

            this.savedLogAllAsInfo = TaskLogger.LogAllAsInfo;
            StringBuilder stringBuilder = new StringBuilder();

            foreach (object obj in invocationInfo.UserSpecifiedParameters.Keys)
            {
                string text = (string)obj;
                object obj2 = invocationInfo.UserSpecifiedParameters[text];
                if (obj2 != null)
                {
                    try
                    {
                        stringBuilder.AppendFormat(" -{0}:{1}", text, SetupLoggingModule.GetPSValue(obj2));
                        goto IL_8C;
                    }
                    catch (Exception e2)
                    {
                        this.context.CommandShell.WriteVerbose(Strings.VerboseTaskParameterLoggingFailed(text, e2));
                        goto IL_8C;
                    }
                    goto IL_7F;
                }
                goto IL_7F;
IL_8C:
                if (string.Equals(text, "ErrorAction", StringComparison.OrdinalIgnoreCase) && (ActionPreference)obj2 == ActionPreference.SilentlyContinue)
                {
                    TaskLogger.LogAllAsInfo = true;
                    continue;
                }
                continue;
IL_7F:
                stringBuilder.AppendFormat(" -{0}:$null", text);
                goto IL_8C;
            }
            this.context.CommandShell.WriteVerbose(Strings.VerboseTaskSpecifiedParameters(stringBuilder.ToString()));
        }
 // Token: 0x06001683 RID: 5763 RVA: 0x0005539D File Offset: 0x0005359D
 private static string GetPSValue(object value)
 {
     return(SetupLoggingModule.GetPSValue(value, false));
 }