How increment ulong correctly?
I'm sorry for this title I will describe everything rn.
I had following DTO:
Then I use this dto:
but today we decided to change Guid to ulong. So now I can't just do
Guid.NewGuid()
.
Maybe I should have smth like this:
or I should just smth like Interlocked.Increment
? What is the best way to solve my problem?2 Replies