/// <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())); }
/// <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)); }