using System;
///
/// A collection of EnumDescriptors for an enumerated type.
///
///
/// The type of the enumeration for which the EnumDescriptors are created.
///
public class EnumDescriptorCollection : System.Collections.ObjectModel.Collection>
{
///
/// Creates a new instance of the EnumDescriptorCollection class.
///
public EnumDescriptorCollection()
{
// Populate the collection with an EnumDescriptor for each enumerated value.
foreach (T value in Enum.GetValues(typeof(T)))
{
this.Items.Add(new EnumDescriptor(value));
}
}
}