Show / Hide Table of Contents

Class ConversionHelper

Contains helper methods for converting things.

Inheritance
object
ConversionHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public static class ConversionHelper

Methods

| Edit this page View Source

HexToBytes(ReadOnlySpan<char>)

Converts the HEX-representation of a byte array to that array.

Declaration
public static byte[] HexToBytes(ReadOnlySpan<char> hexString)
Parameters
Type Name Description
ReadOnlySpan<char> hexString

The HEX-string to convert.

Returns
Type Description
byte[]

The correspondending byte array.

| Edit this page View Source

ToHex(params byte[])

Converts an array of bytes to a HEX-representation.

Declaration
public static string ToHex(params byte[] bytes)
Parameters
Type Name Description
byte[] bytes

The array of bytes.

Returns
Type Description
string

The HEX-representation of the provided bytes.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX