Abstract

Language Integrated Query (LINQ) integrates query syntax inside the C# programming language, making it possible to access different data sources with the same syntax. LINQ accomplishes this by offering an abstraction layer. This chapter describes the core principles of LINQ and the language extensions for C# that make the C# LINQ query possible. The chapter starts with a simple LINQ query before diving into the full potential of LINQ. The C# language offers integrated query language that is converted to method calls. The chapter focuses on how the conversion looks so that all the possibilities of LINQ can be used. The compiler converts the LINQ query to invoke method calls instead of the LINQ query. An extension method is defined as a static method whose first parameter defines the type it extends, and it is declared in a static class.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.