private static void ProtectionProxySample() { var classWithoutPermission = new ProtectionProxy(false); ErrorUtilities.LogException(classWithoutPermission.SensitiveMethod); var classWithPermission = new ProtectionProxy(true); Console.WriteLine(classWithPermission.SensitiveMethod()); }