Convert GUID to Numeric Equivalent

后端 未结 2 1588
无人共我
无人共我 2021-01-22 03:22

I\'ve been asked to export a list of users from ActiveDirectory, and Convert the GUIDs to a numeric equivalent for display (so I\'ll .ToString that after). I\'ve done some searc

2条回答
  •  感动是毒
    2021-01-22 04:06

    You could simply convert Guid to numeric representation using ToString("n") :

    Guid.NewGuid().ToString("n")
    

    will return something like "5ee575bd995b419499aff6d6967c4a35"

提交回复
热议问题