// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; namespace Microsoft.AspNet.Mvc.ModelBinding { /// /// An abstraction used when grouping enum values for . /// public struct EnumGroupAndName { /// /// Initializes a new instance of the EnumGroupAndName structure. /// /// The group name. /// The name. public EnumGroupAndName(string group, string name) { if (group == null) { throw new ArgumentNullException(nameof(group)); } if (name == null) { throw new ArgumentNullException(nameof(name)); } Group = group; Name = name; } /// /// Gets the Group name. /// public string Group { get; } /// /// Gets the name. /// public string Name { get; } } }