Generate a unique key value in code automatically
Posted on 2014-11-21
In database tables there is the possibility to automatically generate a unique primary key for a record.
What I would like is this sort of functionality BUT nothing to do with a database. The data will be structured (tree like) and handled in the app. I had the thought that maybe there is a built in class in C# that I can use to generate a unique value as an identifier.
I can code one myself so I am asking only about a built in, ready to use class if there is one.