Re: FileIOPermissionAttribute VS FileIOPermission ???



the c# compiler implicitly adds the "Attribute" at the end of attribute names if not specified...they are both the same

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Dear all,

What is the difference between :

<Assembly: FileIOPermission(SecurityAction.RequestOptional,
Read:="C:\")>

and

<Assembly: FileIOPermissionAttribute(SecurityAction.RequestOptional,
Read:="C:\")>

It behaves the same.. the difference is that the
FileIOpermissionAttribute is not appearing in the intellisense list.

What is the difference? which one is correct ?

regards
Serge


.



Relevant Pages