Re: The Set Class in C++ and Java



any way, i have checked the file; it doesn't first implement generics
and doesn't really consider strong typing.
Any way; i really hope that Microsoft comes out with a Set
implementation in their future releases.
As an alternative, i see the HashTable, but considering a constantly
sorted range complexity of the tree, a HashTable is not always the
better choice since the fast lookup is what makes it very powerful.

The Java Set Interface is not strongly-typed either. In fact, it can contain
any combination of data in it, not just one type. See
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Set.html. I saw quite a
number of other C# Set Class implementations (see
http://www.google.com/search?hl=en&q=C%23+Set+Class), but the one that I
pointed you to was the closest one to the Java Set Interface, which I
thought was what you were looking for.

In any case, you are free to create your own Collection classes, derive from
any existing Collection class, and implement whatever functionality you
desire. Perhaps, considering your desire for strong typing, you might want
to start from one of the System.Collections.ObjectModel
(http://msdn2.microsoft.com/en-us/library/system.collections.objectmodel.aspx)
or System.Collections.Generic
(http://msdn2.microsoft.com/en-us/library/system.collections.generic.aspx)
namespace classes.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

A watched clock never boils.

"coosa" <coosa76@xxxxxxxxx> wrote in message
news:1159724719.136866.127420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"coosa" <coosa76@xxxxxxxxx> wrote in message
news:1159702414.112222.83780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear all,

I'm familiar with the Set Class in C++ and Java; however, i have
been
searching in C# for a similar container as in c++ or collection as
in
java, but couldn't find one.
Could some one tell me about the the Set implementation inside .NET?

Best regards


I believe the Set.cs link http://www.devhood.com/tools/myDownload is
broken


My bad, my mozilla firefox prevented the scripts for the page, so i
couldn't download it! :-)
any way, i have checked the file; it doesn't first implement generics
and doesn't really consider strong typing.
Any way; i really hope that Microsoft comes out with a Set
implementation in their future releases.
As an alternative, i see the HashTable, but considering a constantly
sorted range complexity of the tree, a HashTable is not always the
better choice since the fast lookup is what makes it very powerful.



.



Relevant Pages

  • Re: The Set Class in C++ and Java
    ... Kevin Spencer wrote: ... and doesn't really consider strong typing. ... i really hope that Microsoft comes out with a Set ... The Java Set Interface is not strongly-typed either. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Recover CD-key for office 2000 Premium
    ... [MVP - Microsoft Word] ... Typing contracts for several facets of the local judical system. ... If I just install the office hapazardly I run the ... "macropod" wrote: ...
    (microsoft.public.office.misc)
  • Re: Its an APU Jim, but not as we know it!
    ... again, well forget it, and I hit post without typing the decoded ... However I only use web-based mail, so Outlook is unused (and Outlook ... I am thinking of debunking to Linux as IMHO Microsoft have lost the ... Microsoft .NET2 update and Microsoft Visual Studio update - jees - ...
    (uk.rec.engines.stationary)
  • Re: Word should catalog misspelled words to study.
    ... Word is not a typing application. ... common typos, however. ... > This post is a suggestion for Microsoft, ... To vote for this suggestion, ...
    (microsoft.public.word.docmanagement)
  • Re: Hiding mouse cursor while typing
    ... > standard, scroll-wheel, optical mouse made by Microsoft. ... > Microsoft Word 2002, the cursor does not disappear, even though the "Hide ... > pointer while typing" is enabled in the Mouse Control Panel applet. ... > DOES disappear once I begin typing. ...
    (microsoft.public.windowsxp.general)

Loading