Re: Funny Comparison with Float

David Nicholson <[email protected]> Fri, 7 Mar 2008 11:13:01 -0500
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <LISTSERV%[email protected]>
On Thu, 6 Mar 2008 15:22:18 +0000, Jon Skeet <[email protected]> wrote:

>Rich Armstrong wrote:
>> Jon Skeet wrote:
>>>> Assuming it's a version number in a normal kind of way, it should
really
>>>> be a decimal (or a string).
>>
>> ... or even a System.Version.
>
>Well, that depends on what it's versioning. If you're versioning
>something which has nothing to do with .NET, and only needs a major and
>minor number, I'm not sure I'd use a version number with 4 parts where
>the class describes itself in terms of versioning a CLR assembly.
>
>I'm sure it would work, but it also has disadvantages such as ToString()
>including the two unnecessary parts.
>
>Jon

I didn't even know there was such a class, but looking at the docs you can
keep it to two parts if you want (including ToString()).

David.

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

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