コード例 #1
0
 /// <summary> Reads the current binary argument as a string value. </summary>
 /// <returns> The string value. </returns>
 public String ReadBinStringArg()
 {
     if (Next())
     {
         if (CmdArgs[_parameter] != null)
         {
             _dumped = true;
             return(Escaping.Unescape(CmdArgs[_parameter]));
         }
     }
     return(string.Empty);
 }
コード例 #2
0
 /// <summary> Converts an escaped string to a bytes array. </summary>
 /// <param name="value"> The value to be converted. </param>
 /// <returns> input value as an escaped string. </returns>
 public static byte[] EscapedStringToBytes(String value)
 {
     try
     {
         string unEscapedValue = Escaping.Unescape(value);
         return(_stringEncoder.GetBytes(unEscapedValue));
     }
     catch (Exception)
     {
         return(null);
     }
 }
コード例 #3
0
 /// <summary> Reads the current binary argument as a string value. </summary>
 /// <returns> The string value. </returns>
 public String ReadBinStringArg()
 {
     if (Next())
     {
         if (_arguments[_parameter] != null)
         {
             _dumped = true;
             return(Escaping.Unescape(_arguments[_parameter]));
         }
     }
     return("");
 }