I don't know if this is better, but easier to read:
Int32.Parse (sample_guid.ToString () substring (0,1).);
I am admittedly a junior developer, but the above is easier for me than converting a byte, and on a modern computer it will be indistinguishable quickly.
source
share