GetDefaultByteArrayAllowDefaultConversion() public static method

Get default byte array allow default conversion value
public static GetDefaultByteArrayAllowDefaultConversion ( ) : bool
return bool
コード例 #1
0
 /// <summary>
 /// Parse string array in byte array
 /// </summary>
 /// <param name="strValue">string to parse</param>
 /// <returns>byte array</returns>
 public static byte[] TryParseByteArray(this string strValue)
 {
     return(strValue.TryParseByteArray(null,
                                       BasePrimitivesExtensions.GetDefaultByteArrayAllowDefaultConversion(),
                                       BasePrimitivesExtensions.GetDefaultByteNumberStyle(),
                                       BasePrimitivesExtensions.GetCurrentCulture()));
 }
コード例 #2
0
 /// <summary>
 /// Parse string array in byte array
 /// </summary>
 /// <param name="strValue">string to parse</param>
 /// <param name="numberStyle">number style to convert</param>
 /// <param name="culture">culture origin</param>
 /// <returns>byte array</returns>
 public static byte[] TryParseByteArray(this string strValue, NumberStyles numberStyle, CultureInfo culture)
 {
     return(strValue.TryParseByteArray(null,
                                       BasePrimitivesExtensions.GetDefaultByteArrayAllowDefaultConversion(),
                                       numberStyle, culture));
 }