List Info

Thread: Guid Constructor




Guid Constructor
user name
2006-12-14 11:00:10
Actually, I'm sure if you ask a lot of people, many of them
will think
that a default ctor should create a zero-initialized guid

Guid.NewGuid is easy for reading and certainly not that much
of a
typing.

On 12/14/06, Brady Kelly <bradychasesoftware.co.za>
wrote:
> Why do I have to use the Guid.NewGuid static method to
create a new, random
> Guid?  A default, parameterless constructor seems an
ideal means to do this.
>
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com

>


--

Cheers,
Stoyan

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Guid Constructor
user name
2006-12-14 11:07:25
I'm not complaining about having to use NewGuid, just
curious.  You do have
a point with the zero-initialised GUID though.

> -----Original Message-----
> From: Discussion of development on the .NET platform
using any managed
> language [mailtoOTNET-CL
RDISCUSS.DEVELOP.COM] On Behalf Of Stoyan
> Damov
> Sent: 14 December 2006 01:00 PM
> To: DOTNET-CLRDISCUSS.DEVELOP.COM
> Subject: Re: [DOTNET-CLR] Guid Constructor
>
> Actually, I'm sure if you ask a lot of people, many of
them will think
> that a default ctor should create a zero-initialized
guid 
> Guid.NewGuid is easy for reading and certainly not that
much of a
> typing.
>
> On 12/14/06, Brady Kelly <bradychasesoftware.co.za> wrote:
> > Why do I have to use the Guid.NewGuid static
method to create a new,
> random
> > Guid?  A default, parameterless constructor seems
an ideal means to do
> this.
> >
> >
> > ===================================
> > This list is hosted by DevelopMentor(r)  http://www.develop.com
> >
> > View archives and manage your subscription(s) at
> http://discuss.develop.com

> >
>
>
> --
>
> Cheers,
> Stoyan
>
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )