Click here to Skip to main content
15,915,813 members
Home / Discussions / C#
   

C#

 
Generaldirectx sdk Pin
cmarmr25-Nov-04 7:27
cmarmr25-Nov-04 7:27 
GeneralPagging dataset and rebind controls Pin
Kris{PL}25-Nov-04 5:09
Kris{PL}25-Nov-04 5:09 
GeneralHashtables and foreach loops: Pin
HahnTech25-Nov-04 4:42
HahnTech25-Nov-04 4:42 
GeneralRe: Hashtables and foreach loops: Pin
Daniel Grunwald25-Nov-04 6:31
Daniel Grunwald25-Nov-04 6:31 
GeneralRe: Hashtables and foreach loops: Pin
Luis Alonso Ramos25-Nov-04 10:52
Luis Alonso Ramos25-Nov-04 10:52 
GeneralRe: Hashtables and foreach loops: Pin
leppie25-Nov-04 20:49
leppie25-Nov-04 20:49 
GeneralRe: Hashtables and foreach loops: Pin
Luis Alonso Ramos26-Nov-04 5:28
Luis Alonso Ramos26-Nov-04 5:28 
GeneralRe: Hashtables and foreach loops: Pin
leppie26-Nov-04 5:40
leppie26-Nov-04 5:40 
Luis Alonso Ramos wrote:
He is modifying the content of the DictionaryEntry object,

And that is simply a placeholder struct for the Key/Value pairs, assigning to that (is it even a set property?) will make no difference to the HashTable, I'm pretty sure the IEnumerator doesnt check for changes... will have to check the code.

Luis Alonso Ramos wrote:
You mention it, what if he causes a Key collision?

Hashtables needs to have unique keys and the way he is modifying it will cause 2 entries in the hashtable to be the same (both hashcode and Equals), and cause an exception. You can get around that by creating an collection as the value and adding to that.

Poke tongue | ;-P

top secret
Download xacc-ide 0.0.3 now!
See some screenshots

GeneralExit Method Pin
lenchase25-Nov-04 4:01
lenchase25-Nov-04 4:01 
GeneralRe: Exit Method Pin
Stefan Troschuetz25-Nov-04 4:15
Stefan Troschuetz25-Nov-04 4:15 
GeneralRe: Exit Method Pin
Daniel Turini25-Nov-04 4:24
Daniel Turini25-Nov-04 4:24 
GeneralRe: Exit Method Pin
Stefan Troschuetz25-Nov-04 4:36
Stefan Troschuetz25-Nov-04 4:36 
General.Net file copy progress Pin
Erica_Al25-Nov-04 3:53
Erica_Al25-Nov-04 3:53 
GeneralRe: .Net file copy progress Pin
Luis Alonso Ramos25-Nov-04 10:58
Luis Alonso Ramos25-Nov-04 10:58 
GeneralExcel Autofilter in datagrid Pin
ruifernandes2425-Nov-04 3:34
ruifernandes2425-Nov-04 3:34 
GeneralRe: Excel Autofilter in datagrid Pin
Dave Kreskowiak26-Nov-04 3:59
mveDave Kreskowiak26-Nov-04 3:59 
GeneralAccessing TabPages via Index Pin
fracalifa25-Nov-04 2:11
fracalifa25-Nov-04 2:11 
GeneralRe: Accessing TabPages via Index Pin
Daniel Turini25-Nov-04 2:30
Daniel Turini25-Nov-04 2:30 
GeneralRe: Accessing TabPages via Index Pin
Stefan Troschuetz25-Nov-04 2:34
Stefan Troschuetz25-Nov-04 2:34 
GeneralUpdating Container Object Pin
A.Mohsen25-Nov-04 2:07
A.Mohsen25-Nov-04 2:07 
GeneralRe: Updating Container Object Pin
Skynyrd25-Nov-04 10:41
Skynyrd25-Nov-04 10:41 
GeneralDeugging Pin
El'Cachubrey24-Nov-04 21:42
El'Cachubrey24-Nov-04 21:42 
GeneralRe: Deugging Pin
Colin Angus Mackay25-Nov-04 0:49
Colin Angus Mackay25-Nov-04 0:49 
GeneralRe: Deugging Pin
Daniel Turini25-Nov-04 2:35
Daniel Turini25-Nov-04 2:35 
Generalerror Pin
fatidarya24-Nov-04 21:02
fatidarya24-Nov-04 21:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.