Click here to Skip to main content
15,902,635 members
Home / Discussions / C#
   

C#

 
AnswerRe: How much memory do uninitialized array take up? Pin
N a v a n e e t h4-Jul-08 16:35
N a v a n e e t h4-Jul-08 16:35 
GeneralRe: How much memory do uninitialized array take up? Pin
Luc Pattyn4-Jul-08 16:44
sitebuilderLuc Pattyn4-Jul-08 16:44 
GeneralRe: How much memory do uninitialized array take up? Pin
N a v a n e e t h4-Jul-08 16:47
N a v a n e e t h4-Jul-08 16:47 
GeneralRe: How much memory do uninitialized array take up? Pin
Guffa5-Jul-08 4:00
Guffa5-Jul-08 4:00 
GeneralRe: How much memory do uninitialized array take up? Pin
N a v a n e e t h5-Jul-08 16:33
N a v a n e e t h5-Jul-08 16:33 
AnswerRe: How much memory do uninitialized array take up? Pin
Guffa5-Jul-08 3:55
Guffa5-Jul-08 3:55 
Questionhow to enable wave out mixer or stero mixer option using c# Pin
theredonion4-Jul-08 10:49
theredonion4-Jul-08 10:49 
QuestionEncrypted string changed when Serialized [modified] Pin
DaveyM694-Jul-08 10:03
professionalDaveyM694-Jul-08 10:03 
I was gonna post this on Monday when back at work with the code in front of me but it's bugging me so I thought I'd post now! (will post code on Monday if needed).

For storing some semi-sensitive data I have a string.Encrypt extension method that uses Rijndael encryption. This encrypted string is then used as a key in a dictionary, which is serialized using Binary serialization.

All this works fine and the data is encrypted/decrypted perfectly but when doing something such as
Value myValue = myDictionary[key.Encrypt()];
the key is never found, but if I do a foreach and do a decrypt on the Key from the KeyValuePair, and compare with key (no encryption) it matches!?!

Any ideas cause it's got me beat!Confused | :confused:

Dave

modified on Friday, July 4, 2008 4:14 PM

AnswerRe: Encrypted string changed when Serialized Pin
Guffa4-Jul-08 12:28
Guffa4-Jul-08 12:28 
GeneralRe: Encrypted string in dictionary Pin
DaveyM694-Jul-08 22:03
professionalDaveyM694-Jul-08 22:03 
GeneralRe: Encrypted string in dictionary Pin
DaveyM694-Jul-08 22:07
professionalDaveyM694-Jul-08 22:07 
QuestionWeb service and multithreading Pin
Le centriste4-Jul-08 9:02
Le centriste4-Jul-08 9:02 
AnswerRe: Web service and multithreading Pin
DaveyM694-Jul-08 10:09
professionalDaveyM694-Jul-08 10:09 
GeneralRe: Web service and multithreading Pin
Le centriste7-Jul-08 5:46
Le centriste7-Jul-08 5:46 
AnswerRe: Web service and multithreading Pin
N a v a n e e t h4-Jul-08 18:07
N a v a n e e t h4-Jul-08 18:07 
AnswerRe: Web service and multithreading Pin
leppie4-Jul-08 18:22
leppie4-Jul-08 18:22 
GeneralRe: Web service and multithreading Pin
Le centriste7-Jul-08 6:06
Le centriste7-Jul-08 6:06 
Questionstring equal Pin
netJP12L4-Jul-08 8:41
netJP12L4-Jul-08 8:41 
AnswerRe: string equal Pin
MoustafaS4-Jul-08 9:39
MoustafaS4-Jul-08 9:39 
GeneralRe: string equal Pin
DaveyM694-Jul-08 9:50
professionalDaveyM694-Jul-08 9:50 
AnswerRe: string equal Pin
DaveyM694-Jul-08 9:47
professionalDaveyM694-Jul-08 9:47 
AnswerRe: string equal Pin
N a v a n e e t h4-Jul-08 18:20
N a v a n e e t h4-Jul-08 18:20 
QuestionIssue Setting Remote Registry Key Value Pin
CNewbie4-Jul-08 8:24
CNewbie4-Jul-08 8:24 
QuestionProcess class access denied on smss Pin
stwu4-Jul-08 8:18
stwu4-Jul-08 8:18 
Questiontyped dataset schema relating to xml file Pin
steve_rm4-Jul-08 8:13
steve_rm4-Jul-08 8:13 

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.