using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crestron.SimplSharp;
namespace PepperDash.Essentials.Core
{
///
/// Basically a List , with an indexer to find feedbacks by key name
///
public class FeedbackCollection : List where T : Feedback
{
///
/// Case-insensitive port lookup linked to feedbacks' keys
///
public T this[string key]
{
get
{
return this.FirstOrDefault(i => i.Key.Equals(key, StringComparison.OrdinalIgnoreCase));
}
}
}
}