Monday, 15 March 2010

c# - list? dictionary? array? -


I am trying to come up with a simple way to store boolean values ​​for each tab page in a tabcontrol . Each page has a text box, and I would like to store a bowel front page, if the tab 1 page has been saved, then bool1 is set to true, and so on.

Then when they close the program, it will go to all tabpages and see if each tab page has been saved or not. I should be able to create a list that I can search and manipulate.

I used the first tag properties for this, but for some reason it does not work properly.

Any help advice would be great; Y will be appreciated :)

Thanks,

Bull.

No array, nor list, and dictionary right to track the boolean state of the set of objects There is no data structure. This structure which does nothing else is hashaseet & lt; T & gt; is either in a T set, or it is not.

This is a dictionary & lt; T, bool & gt; because it actually holds two says: Whether the object is in dictionary or not, and if it is, its value is true or false.

This list & lt; T & gt; For two reasons: It is fast (though in your case, which will almost certainly be insignificant), and this does not mean there is some meaning in order of objects, because in order of objects, Hasheset & lt; T & gt; is unchecked.


No comments:

Post a Comment