Search code examples
c#javahexunmarshallingtransplant

HexBinaryAdapter in C#?


I want to use C# to implement encoding function which is written in Java, but it has some code I've never seen before.

HexBinaryAdapter().unmarshal("publicKey");

Is there any similar API or method in C# or I also need to implement it?


Solution

  • Take a look at SoapHexBinary.

    SoapHexBinary hexBinary = SoapHexBinary.Parse("publicKey");