Core/CafeLib.Core/Support/ObjectId.cs
/// <summary>
/// Tries to parse a hex string to a byte array.
/// </summary>
/// <param name="s">The hex string.</param>
/// <param name="bytes">A byte array.</param>
/// <returns>True if the hex string was successfully parsed.</returns>
Tries to parse a hex string to a byte array.
Tries to parse a hex string to a byte array .
public static bool TryParseHexString(string s, out byte[] bytes)
        {
            try
            {
                bytes = ParseHexString(s);
            }
            catch
            {
                bytes = null;
                return false;
            }
            return true;
        }
public static bool TryParseHexString ( string s , out byte [ ] bytes ) { try { bytes = ParseHexString ( s ) ; } catch { bytes = null ; return false ; } return true ; }
Tries to parse a hex string to a byte array.
Tries to parse a hex string to a byte array .
True if the hex string was successfully parsed.
True if the hex string was successfully parsed .
s
string
The hex string.
The hex string .
byte[]
out
bytes
A byte array.
A byte array .