PC Review


Reply
Thread Tools Rate Thread

C#'s equivalent of the stl

 
 
Boogie El Aceitoso
Guest
Posts: n/a
 
      6th Apr 2004
Hi,

I'm currently learning C# from a C++ background. So far the language looks
interesting but I can't find the equivalent of the C++ STL. Where are the
equivalents of templates, standard container classes, algorithms, etc...? O:-)

Is there any good C++ -> C# migration tutorial?

Thanks O:-)
 
Reply With Quote
 
 
 
 
codymanix
Guest
Posts: n/a
 
      6th Apr 2004
C# will have templates in its next version (c# 2.0, whidbey).
currently you have to use the stuff provided in namespace
System.Collections.
It is not much, a lot of stuff is still missing but is has to be enough for
now.

--
cody

Freeware Tools, Games and Humour
http://www.deutronium.de.vu || http://www.deutronium.tk
"Boogie El Aceitoso" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Hi,
>
> I'm currently learning C# from a C++ background. So far the language

looks
> interesting but I can't find the equivalent of the C++ STL. Where are the
> equivalents of templates, standard container classes, algorithms, etc...?

O:-)
>
> Is there any good C++ -> C# migration tutorial?
>
> Thanks O:-)



 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      6th Apr 2004
Boogie El Aceitoso <(E-Mail Removed)> wrote:
> I'm currently learning C# from a C++ background. So far the language looks
> interesting but I can't find the equivalent of the C++ STL. Where are the
> equivalents of templates, standard container classes, algorithms, etc...? O:-)
>
> Is there any good C++ -> C# migration tutorial?


Templates don't exist in C# - generics will fill most of the void when
they arrive with .NET 2.0.

As for other things, the System.Collections has things like lists, maps
etc. What else are you looking for in particular?

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Martin Honnen
Guest
Posts: n/a
 
      6th Apr 2004


Boogie El Aceitoso wrote:

> I'm currently learning C# from a C++ background. So far the language looks
> interesting but I can't find the equivalent of the C++ STL. Where are the
> equivalents of templates, standard container classes, algorithms, etc...? O:-)


With C# (as with other .NET languages) you have the .NET SDK as your
library:
http://msdn.microsoft.com/library/de...pref_start.asp
Currently there is no template/generics support but it is announced for
the next version:
http://longhorn.msdn.microsoft.com/l...s.generic.aspx
--

Martin Honnen
http://JavaScript.FAQTs.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Equivalent for VB6 Mazant, K. Microsoft Dot NET 2 9th Dec 2007 05:55 AM
vba equivalent John Microsoft VB .NET 7 3rd Dec 2007 05:57 PM
what the c# equivalent of ... =?Utf-8?B?am9zZSBnLiBkZSBqZXN1cyBqciBtY3AsIG1jZGJh Microsoft C# .NET 5 31st Jul 2005 02:16 PM
Equivalent Of VAL davidm Microsoft Excel Programming 4 27th Jul 2005 06:22 PM
Equivalent of GetPrivateProfileString equivalent in C#? Germic Microsoft C# .NET 1 24th Jan 2005 09:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:29 PM.