|
-
Jul 24th, 2012, 04:58 AM
#1
Thread Starter
Junior Member
what is the meaning of (Guid) in c#
what is the meaning of (Guid) in c#
i saw this while making windows form application while using c# ,working on data set .
-
Jul 24th, 2012, 05:16 AM
#2
Re: what is the meaning of (Guid) in c#
A little more context would be helpful. I'm guessing that you've found it infront of an expression, in which case it is converting the value of the expression into a value of type Guid
-
Jul 24th, 2012, 05:23 AM
#3
Thread Starter
Junior Member
Re: what is the meaning of (Guid) in c#
 Originally Posted by Evil_Giraffe
A little more context would be helpful. I'm guessing that you've found it infront of an expression, in which case it is converting the value of the expression into a value of type Guid
DataSet carinventoryDS= new DataSet("Car Inventory");
carinventoryDS.ExtendedProperties["TimeStamp"] = DateTime.Now;
carinventoryDS.ExtendedProperties["DataSetID"]=Guid.NewGuid();
-
Jul 24th, 2012, 05:38 AM
#4
Re: what is the meaning of (Guid) in c#
Guid.NewGuid() is calling the static NewGuid() method on the Guid class. 'Guid' is the type name. If you've not changed your IDE colours, it'll show up in a sort of duck-egg blue to indicate it is a type. What this method returns is a Guid instance (i.e. an object of type Guid, not the type itself) that has been poplated with a unique value via one of the GUID generation algorithms.
-
Jul 24th, 2012, 07:55 AM
#5
Fanatic Member
Re: what is the meaning of (Guid) in c#
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|