public static IntentPriority Lower(IntentPriority priority) { if (priority.Value == UInt32.MaxValue) throw new ArgumentException("${Resources.CannotSetPriorityLowerZero}", "priority"); return new IntentPriority(priority.Value + 1); }
static IntentPriorities() { Zero = new IntentPriority(ZeroValue); Integral = new IntentPriority(IntegralValue); Default = new IntentPriority(DefaultValue); Convention = new IntentPriority(ConventionValue); UserConvention = new IntentPriority(UserConventionValue); Preferred = new IntentPriority(PreferredValue); }