[.net] STL in C#?
Hi guys,
Is there in C# something as the STL in C++? How would I use vectors, lists and queues?
Thanks
Darkneon
C# has its own types, I cant remember the exact names since it have been a while since I programmed C#, but I remember it had much more of these kind of types than C++ have.
In C# you have two choices. You can use untyped collections such as ArrayList or HashTable that hold Objects (from System.Collections), or if you have access to .NET 2.0 (such as via the MS visual studio 2005 betas) you can use the generics versions such as List<> or SortedDictionary><> in System.Collections.Generic.
The Best Thing Ever(tm) is that the Visual Studio debugger can actually make sense of the contents of the System.Collections.Generic collection types. I haven't ever gotten C++ std::map to make any sense in a debugger.
Quote:Original post by NypyrenSTLFilt.
The Best Thing Ever(tm) is that the Visual Studio debugger can actually make sense of the contents of the System.Collections.Generic collection types. I haven't ever gotten C++ std::map to make any sense in a debugger.
Quote:Original post by OluseyiQuote:Original post by NypyrenSTLFilt.
The Best Thing Ever(tm) is that the Visual Studio debugger can actually make sense of the contents of the System.Collections.Generic collection types. I haven't ever gotten C++ std::map to make any sense in a debugger.
That doesn't in any way solve his problem.
Quote:Original post by OluseyiQuote:Original post by NypyrenSTLFilt.
The Best Thing Ever(tm) is that the Visual Studio debugger can actually make sense of the contents of the System.Collections.Generic collection types. I haven't ever gotten C++ std::map to make any sense in a debugger.
What he's saying is that the debugger will happily show you the contents of the collections (even if they aren't generic). In the Express version, it comes up as a tooltip(!).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement