Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating GUIDs using C# ...

Status
Not open for further replies.

Komil13

Programmer
Sep 26, 2001
50
US
Hi guys,

Is there any way to generate GUIDs using C#. I am building a web application that I would like to use it for.

Thanks for all your help.
 
Hello i am having Guid problem also
does anybody know how i can make a custom guid
like if i would like to use this guid {FA495246-6D0F-4BAE-BB66-1F8896C92695}

new Guid({FA495246-6D0F-4BAE-BB66-1F8896C92695});





Best regards Hlynur
 
One of the other constructors for the Guid structure allows you to specify the values for all the elements of a GUID. It looks like this:
Code:
[C#]
public Guid(
   int a,
   short b,
   short c,
   byte d,
   byte e,
   byte f,
   byte g,
   byte h,
   byte i,
   byte j,
   byte k
);

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top