Table of Contents

Method TryParseHexString

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

TryParseHexString(string, out byte[])

Tries to parse a hex string to a byte array.

public static bool TryParseHexString(string s, out byte[] bytes)

Parameters

s string

The hex string.

bytes byte[]

A byte array.

Returns

bool

True if the hex string was successfully parsed.