The short answer has been given already. I'm looking for the long answer. Subquestions:
int.Parse("25")
. When can I be sure that a SecurityException will never be thrown?For the fullest answer, I recommend downloading the shared-source Rotor and searching for places where a SecurityException
is thrown.
Here's a download site: http://www.microsoft.com/downloads/en/details.aspx?FamilyId=8C09FD61-3F26-4555-AE17-3121B4F51D4D&displaylang=en
And some sample findings:
HttpWebRequest.CheckResubmit
, if Demand()
on WebPermission
failsBaseConfigurationRecord.CheckPermissionAllowed
, if Demand()
for a ConfigurationPermission(PermissionState.Unrestrictred)
fails in certain circumstances(there are many more)
...