Click here to Skip to main content
15,908,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: StringCollection and substring Pin
Saamir17-Jul-06 3:48
Saamir17-Jul-06 3:48 
QuestionCompacting MS Access database from C# code? Pin
xkx3216-Jul-06 6:54
xkx3216-Jul-06 6:54 
AnswerRe: Compacting MS Access database from C# code? Pin
Eran Aharonovich16-Jul-06 8:25
Eran Aharonovich16-Jul-06 8:25 
QuestionThread termination Pin
overfreeze16-Jul-06 5:59
overfreeze16-Jul-06 5:59 
AnswerRe: Thread termination Pin
S. Senthil Kumar16-Jul-06 6:11
S. Senthil Kumar16-Jul-06 6:11 
AnswerRe: Thread termination Pin
Dario Solera16-Jul-06 6:36
Dario Solera16-Jul-06 6:36 
QuestionHow to access object in hash table ? Pin
Yanshof16-Jul-06 5:00
Yanshof16-Jul-06 5:00 
AnswerRe: How to access object in hash table ? Pin
S. Senthil Kumar16-Jul-06 6:16
S. Senthil Kumar16-Jul-06 6:16 
You can do
int originalA = R.a;
Struct_1 newR = T[R.a];

newR.a = 42;
newR.b = 42;
T[originalA] = newR;


However, note that the above code changes the value for the previous key and because the key itself is part of the value, it can be confusing if you depend on key == ((R)T[key]).a .

Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
QuestionNeed help to convert an IntPtr to an int[] Pin
Thomas van Veen16-Jul-06 4:12
Thomas van Veen16-Jul-06 4:12 
Questioncatastrophic failure in using activex Pin
pardis16-Jul-06 1:03
pardis16-Jul-06 1:03 
AnswerRe: catastrophic failure in using activex Pin
Dave Kreskowiak16-Jul-06 2:17
mveDave Kreskowiak16-Jul-06 2:17 
GeneralRe: catastrophic failure in using activex Pin
pardis18-Jul-06 0:56
pardis18-Jul-06 0:56 
GeneralRe: catastrophic failure in using activex Pin
pardis18-Jul-06 1:04
pardis18-Jul-06 1:04 
GeneralRe: catastrophic failure in using activex Pin
Dave Kreskowiak18-Jul-06 1:38
mveDave Kreskowiak18-Jul-06 1:38 
Questionhi friends! Pin
kh.pakdaman16-Jul-06 0:06
kh.pakdaman16-Jul-06 0:06 
AnswerRe: hi friends! Pin
Ravi Bhavnani16-Jul-06 5:24
professionalRavi Bhavnani16-Jul-06 5:24 
AnswerRe: hi friends! Pin
Fahad Ali16-Jul-06 13:06
Fahad Ali16-Jul-06 13:06 
QuestionRe: hi friends! Pin
paulcortez16-Jul-06 18:58
paulcortez16-Jul-06 18:58 
AnswerRe: hi friends! Pin
PlayByTheRules16-Jul-06 23:16
PlayByTheRules16-Jul-06 23:16 
QuestionHow can I Map other web?? Pin
dabuskol16-Jul-06 0:03
dabuskol16-Jul-06 0:03 
AnswerRe: How can I Map other web?? Pin
Gavin Roberts17-Jul-06 2:11
Gavin Roberts17-Jul-06 2:11 
Questionunsure about running apps of different cd's... Pin
Anthony Mushrow15-Jul-06 15:04
professionalAnthony Mushrow15-Jul-06 15:04 
AnswerRe: unsure about running apps of different cd's... Pin
led mike15-Jul-06 16:23
led mike15-Jul-06 16:23 
GeneralRe: unsure about running apps of different cd's... Pin
Jun Du15-Jul-06 16:46
Jun Du15-Jul-06 16:46 
GeneralRe: unsure about running apps of different cd's... Pin
S. Senthil Kumar16-Jul-06 6:17
S. Senthil Kumar16-Jul-06 6:17 

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.