|
SortedDictionary<TKey, TValue>
|
|
|
|
|
columbos14927 wrote: What is the best data structure .Net suggest if i want to store a couple of a
kind (int , int) when the first int is the key of the couple?
Dictionary<int, int>
Bastard Programmer from Hell
|
|
|
|
|
If you need fast lookup based on the key value, a Dictionary is highly recommended. It is fast, however it does not preserve order.
If order is most relevant to you, you might opt for a List of KeyValuePair objects. However I can't easily imagine a situation where I would. Alternatively, you could go for a Dictionary plus a List that holds the keys in the order you want them. I do this occasionally.
|
|
|
|
|
Using the KeyValuePair class[^] should help you solve your problem.
|
|
|
|
|
You have stated in another response you want it to be sorted too?
if so, how about the SortedDictionary[^]?
|
|
|
|
|
I'll chime in with the rest - SortedDictionary<of keytype,="" valuetype="">. I've used it extensively in VS 2008 projects for just this purpose, where I wanted key lookup of values but also wanted to iterate through the list in key order.
"It's not what you don't know that will hurt you the most, it's what you think you know that isn't so." - Unknown
|
|
|
|
|
FRENCH
Je veux créé un "Web Browser" c'est a dir un navigateur intenet en VB (Visual Basic) qui ne serais pas basé sur le Controle Actve X de Intenet Explorer (IE) mais sur celui que je vais créé. Alors je vous demande comment le créé (Mon webrowser control)?
English
I created a "Web Browser" is a dir intenet browser in VB (Visual Basic) that would not be based on the Control Actve X of Intenet Explorer (IE) but the one I will created. So I ask you how created (my webrowser control)?
|
|
|
|
|
What will be the functionality of your browser?
Will the Control do more than just paint the page? (e.g. have buttons, menus, ...)
Will it support HTML4, HTML5, CSS, CSS3, JavaScript, ...?
Why do you want to do this? I could come up with a few reasons, however I'm curious about your reasons.
And why did you ask in French, as your English is clearly better than your French, at least as far as spelling goes?
|
|
|
|
|
Can any one help to limit the internet usage of the computers connected in a LAN network.
|
|
|
|
|
Yeah, it's called a proxy server. Since you haven't asked a more specific question, that's about as specific as the answer is going to get.
|
|
|
|
|
Hi, can anyone tell me which .NET framework is superior to work on?
-- modified 17-Apr-12 1:53am.
|
|
|
|
|
IMO, its always best to use the latest (ease of use is something that depends on how fast you can learn the new features of the version).
|
|
|
|
|
|
|
All of them. It depends on the app requirements and the lowest common denominator for platform support.
|
|
|
|
|
Dave Kreskowiak wrote: All of them. It depends on the app requirements
That is absolutely correct.
|
|
|
|
|
|
.net 3.5 Version Is Easier to use
|
|
|
|
|
|
The answers given by Abhinav and Dave Kreskowiak are absolutely correct.
I want to add that
.NET 1 and 1.1 are now obsolete.
Even though Visual Studio 2008 and above provide multi targeting feature, there is no support for .NET 1 and .NET 1.1.
The size of .NET 2 is less, around 22.5 MB. With the introduction of generics and other improvements in .NET 2, I think, if there is a concern about the size of deployment, .NET 2 can still be used, if there is no specific requirement for new features available in the later versions.
For some features like, extension methods and LINQ to objects there are certain work arounds to use them in .NET 2 also.
|
|
|
|
|
I am developing an application called mysql query browser in C#.net. I have to mention hardware and software requirements in my SRS.But I dont know how to know what are these and what is the reason behind this....so plz tell me....I am using .net 3.5..thanks...
|
|
|
|
|
The reason is very simple.
Imagine trying to run the application you are building on a machine that does not have the framework installed or on a system that does not have Windows.
It wont work!
As a result, you need to list out the minimum requirements that your application needs to run.
|
|
|
|
|
Hi,
Hardware Requirements: The computer hardware to run your application (Like: Minimum RAM required, Hard Disk Space needed, Processor (Dual core, i3, i5, P4))
Software Requirements: The softwares wihout which your application will not run (Such as Operating System (Windows7, WinXP, Linux etc),.NET framework (if required), Windows Installer etc.)
I have just giving you the example, but the actual requirement you have to know.
Happy Coding...
|
|
|
|
|
how can i debug asp.net (vb) code on visual studio 2003 in windows 7
visual studio properties;
When I checked the ASP.NET debugging,
I get "Error while trying to run project: Unable to start debugging on the web server" error message...
I am waiting your kind helpness ...
Thanks,
|
|
|
|
|