private string[] GetEntityProperties(string select) { IEnumerable <string> selectItems = select .Split(',', StringSplitOptions.RemoveEmptyEntries) .Select(item => item.Trim()); IEnumerable <string> items = EntityProperties .Where(item => selectItems.Contains(item, StringComparer.InvariantCultureIgnoreCase)); return(items.ToArray()); }