w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Converting UUID to OID, translating java code to C# - how does this work?

I think they do it this way because there is no easy way of converting the UUID to a byte array to pass to the BigInteger in Java.

See this : GUID to ByteArray

In C#, this should be what you are looking for :

String oid = "prefix" + "." + new System.Numerics.BigInteger(
        System.Guid.NewGuid().ToByteArray()).ToString();




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.