+ _scope = SecurityCriticalScope.Explicit;
+ }
+
+ public SecurityCriticalAttribute (SecurityCriticalScope scope)
+ : base ()
+ {
+ switch (scope) {
+ case SecurityCriticalScope.Everything:
+ _scope = SecurityCriticalScope.Everything;
+ break;
+ default:
+ // that includes all bad enums values
+ _scope = SecurityCriticalScope.Explicit;
+ break;
+ }
+ }
+
+ public SecurityCriticalScope Scope {
+ get { return _scope; }