Development, Pro Members, Standard Members

Working with Operators in LINQ – Part 2

Working with Operators in LINQ – Part 2 Element Operators Element operators allow you to retrieve elements from a sequence at specific locations. First The First operator returns the first element in a sequence. AdventureWorksDataContext adc = new AdventureWorksDataContext(); Product query = adc.Products.AsEnumerable().First(); Console.WriteLine(String.Format("ID = {0},tName = {1}",query.ProductID,query.Name)); The example below uses a predicate in the First operator. AdventureWorksDataContext adc…

This content is for Pro, Pro Member, Pro Member Annual – Fall Sale, Pro Member Monthly – Fall Sale, Standard, Standard Member, Standard Member Annual – Fall Sale, and Standard Member Monthly – Fall Sale members only.
Log In Register

Comments are closed.