public static IEnumerable <ReferenceDataItem> GetItemsByCode(this IReferenceDataSource source, string code) { return(source.GetItems().Where(x => x.Code == code)); }
public static IEnumerable <ReferenceDataItem> GetItemsByCode (this IReferenceDataSource source, string code) { Contract.Requires(source != null); return(source.GetItems().Where(x => x.Code == code)); }