using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace Neo.Afx.Collections
{
///
/// A collection of int values that map to day string values.
///
public class DayCollection : ReadOnlyCollection>
{
///
/// Initializes a new instance of the class.
///
public DayCollection()
: base(CreateList())
{
}
static List> CreateList()
{
var options = new List>();
for(var i = 1; i <= 31; i++)
{
options.Add(new KeyValuePair(i, i.ToString()));
}
return options;
}
}
}