Applying Code Access Restrictions in .NET