Skip to content

Commit

Permalink
dotnet.Nyzo.CL - v1.1.0 - add ByteArrayAsHex to NyzoUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminvanrenterghem committed May 12, 2024
1 parent 10dc19c commit 7b230df
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dotnet.Nyzo.CL.Tests/Nyzo.CL.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>Nyzo.CL.Tests</PackageId>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<Authors>Benjamin Van Renterghem</Authors>
<Company>construct0</Company>
<PackageDescription>xUnit test project for the Nyzo class library (Nyzo.CL). The version indicates which Nyzo.CL version it is paired to.</PackageDescription>
Expand Down
2 changes: 1 addition & 1 deletion dotnet.Nyzo.CL/Nyzo.CL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>Nyzo.CL</PackageId>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<Authors>Benjamin Van Renterghem</Authors>
<Company>construct0</Company>
<PackageDescription>Nyzo class library.</PackageDescription>
Expand Down
7 changes: 7 additions & 0 deletions dotnet.Nyzo.CL/NyzoUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
namespace Nyzo.CL;

public static class NyzoUtil {
public static string ByteArrayAsHexString(byte[] array) {
return BitConverter.ToString(array)
.Replace("-", "")
.ToLower()
;
}

public static byte[] HexStringAsByteArray(string identifier){
identifier = identifier.Replace("-", "");

Expand Down

0 comments on commit 7b230df

Please sign in to comment.