Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between Count() and LongCount extension methods in LINQ?



What is the difference between Count() and LongCount extension methods in LINQ?..

Answer / Deepak Nigam

Both Count() and LongCount are extension methods that return the number of elements in a sequence, but they differ in the type of result. Count() returns an Int32, while LongCount returns a Long (Int64). This makes Count() suitable for sequences that can fit within an integer, and LongCount suitable for larger sequences.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What are conversion operators?

1 Answers  


In which statement the LINQ query is executed?

1 Answers  


Which namespace is necessary to use LINQ?

1 Answers  


What is linqkit?

1 Answers  


What is the advantage of linq over sql?

1 Answers  


What is “oftype"? In linq?

1 Answers  


What is linq in .net with example?

1 Answers  


What are the different ways to write linq query syntax?

1 Answers  


What is linq used for?

1 Answers  


What is LINQPad?

1 Answers  


What is lambda expression in linq?

1 Answers  


what is the role of DataContext classes in LINQ?

1 Answers  


Categories