PDA

Click to See Complete Forum and Search --> : [2.0] give the difference?


popskie
Nov 17th, 2006, 03:05 AM
HI to all,
I encountered this type of coding and Im not familiar with this one. I read the MSDN but I could not get the idea. This is the reason I'm posting this one in the forums hoping someone can help save me to understand and if posible please describe or discuss this literally and please provide a sample.

[assembly:FileIOPermissionAttribute(SecurityAction.RequestOptional, Read=@"C:\boot.ini")]

versus

[assembly:FileIOPermissionAttribute(SecurityAction.RequestMinimum, Read=@"C:\boot.ini")]

and also Demand vs Assert?
thanks,

Popskie

Andy
Nov 17th, 2006, 02:09 PM
What is it you don't exactly understand? Are you wondering about the minor syntactical difference in the two lines or simply the syntax of them both in general?