I guess you have to call the static method Guid.NewGuid(). This will return
you a new instance. Then, if you need to extract the generated value, call
either the ToString() or ToByteArray() method.
- José
"Steve" <(E-Mail Removed)> a écrit dans le message de news:
(E-Mail Removed)...
>I need to generate a unique number/string of some description and thought a
> guid would be ideal.
> Any ideas on how to generate a guid?
>
> I'm not using SQL server so SELECT NEWID() is out but something similar in
> code would be great.
>
> I've looked at the System.Guid class but can't figure how to have it
> generate a fresh GUID.
>
> Thanks for any pointers.
>
>
>