Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best method of getting Int32 from first four bytes of GUID?

Tags:

c#

.net

guid

I'm just wondering if it exists better solution for this.

BitConverter.ToInt32(sample_guid.ToByteArray(), 0)
like image 563
rafek Avatar asked Oct 15 '22 19:10

rafek


1 Answers

I don't think there's a better solution than this.

like image 144
Dave Van den Eynde Avatar answered Oct 19 '22 00:10

Dave Van den Eynde