tags:

views:

87

answers:

1

I have the following class:

[UIPermission(SecurityAction.InheritanceDemand, Window = UIPermissionWindow.AllWindows)]
    public class PrintData
    {
        protected string Data = "secret value";

        public virtual void PrintString()
        {
            Console.WriteLine(Data);
        }
    }

Can someone provide an example in which inheriting from PrintData and/or invoking an overridden PrintString method will throw an exception?

A: 
Dabblernl