public static IEnumerable <CommandLineItem> OfType( this IEnumerable <CommandLineItem> collection, CommandLineItemType itemType) { return(collection .Where(_item => _item.Type == itemType)); }
private CommandLineItem( CommandLineItemType type, string id, string key, string value) { Type = type; Id = id; Key = key; Value = value; }