/// <summary> /// Initializes a new instance of the <see cref="DrawerPriority"/> struct. /// </summary> /// <param name="priority">The priority.</param> public DrawerPriority(DrawerPriorityLevel priority) { DrawerPriority set; switch (priority) { case DrawerPriorityLevel.AutoPriority: set = AutoPriority; break; case DrawerPriorityLevel.ValuePriority: set = ValuePriority; break; case DrawerPriorityLevel.AttributePriority: set = AttributePriority; break; case DrawerPriorityLevel.WrapperPriority: set = WrapperPriority; break; case DrawerPriorityLevel.SuperPriority: set = SuperPriority; break; default: throw new NotImplementedException(priority.ToString()); } this.Value = set.Value; this.Wrapper = set.Wrapper; this.Super = set.Super; }
/// <summary> /// Indicates the priority of an inspector drawer. /// </summary> /// <param name="priority">Option for priority for the inspector drawer.</param> public DrawerPriorityAttribute(DrawerPriorityLevel priority) { this.Priority = new DrawerPriority(priority); }