Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: Vista C# developer basics Pin
John Ad4-Aug-08 4:54
John Ad4-Aug-08 4:54 
GeneralRe: Vista C# developer basics Pin
Stevo Z4-Aug-08 5:11
Stevo Z4-Aug-08 5:11 
Questionexplicit interface implementation of ICollection in Generic Classes Pin
MarkPhB4-Aug-08 3:06
MarkPhB4-Aug-08 3:06 
AnswerRe: explicit interface implementation of ICollection in Generic Classes Pin
Simon P Stevens4-Aug-08 3:30
Simon P Stevens4-Aug-08 3:30 
GeneralRe: explicit interface implementation of ICollection in Generic Classes Pin
MarkPhB4-Aug-08 3:57
MarkPhB4-Aug-08 3:57 
GeneralRe: explicit interface implementation of ICollection in Generic Classes Pin
Simon P Stevens4-Aug-08 10:58
Simon P Stevens4-Aug-08 10:58 
GeneralRe: explicit interface implementation of ICollection in Generic Classes Pin
MarkPhB4-Aug-08 19:37
MarkPhB4-Aug-08 19:37 
GeneralRe: explicit interface implementation of ICollection in Generic Classes Pin
Simon P Stevens4-Aug-08 23:27
Simon P Stevens4-Aug-08 23:27 
MarkPhB wrote:
Well in that case you have no chance. If someone uses reflection then there is no way to protect it.
With Reflection someone can do everything, unimportant whether the lockObject is private or public. [Wink]


Really. Dam it, how stupid. How can anything ever be secure if someone can just fully reflect all your private stuff and change anything they want. Have I missed the point here?

[It seems your right: You have to pass the BindingFlags.NonPublic value! This seems rather dumb]


MarkPhB wrote:
OK, but how shall i lock the ConnectionList for an external enumeration ?
...or shall i copy the entire ConnectionList befor i enumerate it ? [Sniff]


Yes, copying the collectionlist before returning it would be the standard way. We have several classes that wrap collections, and do copies before returning them to maintain integrity.

Simon

QuestionProblem in excel, Please help................................................................................... Pin
Mogaambo4-Aug-08 3:06
Mogaambo4-Aug-08 3:06 
AnswerRe: Problem in excel, Please help................................................................................... [modified] Pin
Thomas Stockwell4-Aug-08 3:53
professionalThomas Stockwell4-Aug-08 3:53 
QuestionI want to open PDF File in my application Pin
Laji594-Aug-08 2:27
Laji594-Aug-08 2:27 
AnswerRe: I want to open PDF File in my application Pin
Pete O'Hanlon4-Aug-08 2:55
mvePete O'Hanlon4-Aug-08 2:55 
GeneralRe: I want to open PDF File in my application Pin
Laji594-Aug-08 3:22
Laji594-Aug-08 3:22 
GeneralRe: I want to open PDF File in my application Pin
Pete O'Hanlon4-Aug-08 4:07
mvePete O'Hanlon4-Aug-08 4:07 
GeneralReposter... Pin
Paul Conrad4-Aug-08 5:53
professionalPaul Conrad4-Aug-08 5:53 
GeneralRe: I want to open PDF File in my application Pin
Thomas Stockwell4-Aug-08 4:08
professionalThomas Stockwell4-Aug-08 4:08 
AnswerRe: I want to open PDF File in my application Pin
Gulfraz Khan4-Aug-08 4:23
Gulfraz Khan4-Aug-08 4:23 
GeneralRe: I want to open PDF File in my application Pin
Laji594-Aug-08 18:35
Laji594-Aug-08 18:35 
Questioncapturing events at form level Pin
neer14-Aug-08 2:15
neer14-Aug-08 2:15 
AnswerRe: capturing events at form level Pin
Simon P Stevens4-Aug-08 2:21
Simon P Stevens4-Aug-08 2:21 
Questionprinting in C#.net Pin
varun_mca_ju4-Aug-08 2:01
varun_mca_ju4-Aug-08 2:01 
AnswerRe: printing in C#.net Pin
teejayem4-Aug-08 3:05
teejayem4-Aug-08 3:05 
QuestionRe: printing in C#.net Pin
varun_mca_ju5-Aug-08 0:20
varun_mca_ju5-Aug-08 0:20 
AnswerRe: printing in C#.net [modified] Pin
teejayem5-Aug-08 2:59
teejayem5-Aug-08 2:59 
GeneralRe: printing in C#.net...IT WORKS LIKE A CHARM Pin
varun_mca_ju5-Aug-08 21:42
varun_mca_ju5-Aug-08 21:42 

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.