using System.Collections.Generic; using System.Linq; namespace IRCRobots { public class MessageTag { public MessageTag() { Tags = new[] {Name, DraftName}; } public string Name { get; set; } public string DraftName { get; set; } public IEnumerable Tags { get; } public string? Available(IEnumerable tags) { return Tags.FirstOrDefault(tag => tag != null && tags.Contains(tag)); } public string? Get(Dictionary tags) { return ""; } } }