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

C#

 
QuestionSpeed Limit (Bandwidth) in WebRequest Pin
SakthiSurya2-May-07 19:19
SakthiSurya2-May-07 19:19 
AnswerRe: Speed Limit (Bandwidth) in WebRequest Pin
Dave Kreskowiak3-May-07 3:54
mveDave Kreskowiak3-May-07 3:54 
QuestionAPI Functions Pin
Mkanchha2-May-07 19:10
Mkanchha2-May-07 19:10 
AnswerRe: API Functions Pin
Christian Graus2-May-07 19:31
protectorChristian Graus2-May-07 19:31 
QuestionReg: Reflection accessing private Memebers.. Pin
Kiran Kumar Singani2-May-07 18:59
Kiran Kumar Singani2-May-07 18:59 
AnswerRe: Reg: Reflection accessing private Memebers.. Pin
AFSEKI7-May-07 5:48
AFSEKI7-May-07 5:48 
GeneralRe: Reg: Reflection accessing private Memebers.. Pin
Kiran Kumar Singani7-May-07 17:55
Kiran Kumar Singani7-May-07 17:55 
GeneralRe: Reg: Reflection accessing private Memebers.. Pin
AFSEKI7-May-07 21:42
AFSEKI7-May-07 21:42 
It is not safe because you try to access methods at run time using "reflection".

Use SecurityPermissionAttributes on your private methods for which you want to access.

What is the reason behind accessing a private mthod. Do it public then.

As a design rule, make things non-punlic if you don't neeed them or if you want to secure them.

Have alook at .NET Reflector tool which disassembles any .NET assembly to it's original source code using reflection including of course the private ones. Which means you can access but this tool also shows how unsecure your private methods are. To call these methods, I've not tried actually but as I said, try to make them internal or private and add SecurityAttributes to ptotect.

Hope this helps...
Questionprivate constructor Pin
Test2703072-May-07 18:57
Test2703072-May-07 18:57 
AnswerRe: private constructor Pin
Leslie Sanford2-May-07 19:06
Leslie Sanford2-May-07 19:06 
AnswerRe: private constructor Pin
Christian Graus2-May-07 19:32
protectorChristian Graus2-May-07 19:32 
AnswerRe: private constructor Pin
Vikram A Punathambekar2-May-07 19:45
Vikram A Punathambekar2-May-07 19:45 
QuestionHow to access Local Security Policy using c# Pin
Pranav Soral2-May-07 18:51
Pranav Soral2-May-07 18:51 
AnswerRe: How to access Local Security Policy using c# Pin
Sathesh Sakthivel2-May-07 18:56
Sathesh Sakthivel2-May-07 18:56 
AnswerRe: How to access Local Security Policy using c# Pin
Osrald2-May-07 20:51
Osrald2-May-07 20:51 
GeneralRe: How to access Local Security Policy using c# Pin
Pranav Soral2-May-07 21:20
Pranav Soral2-May-07 21:20 
QuestionHow to access Local Security Policy using c# Pin
Pranav Soral2-May-07 18:47
Pranav Soral2-May-07 18:47 
AnswerRe: How to access Local Security Policy using c# Pin
Sathesh Sakthivel2-May-07 18:55
Sathesh Sakthivel2-May-07 18:55 
Questiondatagridview1 to datagridview2 Pin
balanjingot2-May-07 18:34
balanjingot2-May-07 18:34 
QuestionHow to export data from DataGrid to Excel? Pin
arbound082-May-07 17:51
arbound082-May-07 17:51 
AnswerRe: How to export data from DataGrid to Excel? Pin
tatchung2-May-07 19:38
tatchung2-May-07 19:38 
Questionhelp me about speed of loading data ... Pin
phantanagu2-May-07 15:51
phantanagu2-May-07 15:51 
AnswerRe: help me about speed of loading data ... Pin
Christian Graus2-May-07 16:07
protectorChristian Graus2-May-07 16:07 
GeneralRe: help me about speed of loading data ... Pin
phantanagu2-May-07 16:28
phantanagu2-May-07 16:28 
QuestionRe: help me about speed of loading data ... Pin
Stefan Prodan3-May-07 13:01
Stefan Prodan3-May-07 13:01 

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.