public MonthText[] ToMonthTextArray() { MonthText[] ms = new MonthText[this.Count]; for (int i = 0; i < this.Count; ++i) { ms[i] = this[i]; } return(ms); }
public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(InstanceDescriptor)) { MonthText m = (MonthText)value; ConstructorInfo cInfo = typeof(MonthText).GetConstructor(new Type[] { typeof(MonthOfYear), typeof(string) }); return(new InstanceDescriptor(cInfo, new object[] { m.Month, m.Text }, true)); } return(base.ConvertTo(context, culture, value, destinationType)); }
public bool Contains(MonthOfYear month) { MonthText m = new MonthText(month, string.Empty); return(List.Contains(m)); }
public bool Contains(MonthText value) { // If value is not of type Int16, this will return false. return(List.Contains(value)); }
public void Remove(MonthText value) { List.Remove(value); }
public void Insert(int index, MonthText value) { List.Insert(index, value); }
public int IndexOf(MonthOfYear month) { MonthText m = new MonthText(month, string.Empty); return(this.IndexOf(m)); }
public int IndexOf(MonthText value) { return(List.IndexOf(value)); }
public int Add(MonthText value) { return(List.Add(value)); }