GeekArticles
Microsoft
Microsoft.NET


Fluent interface and method chaining in C# for beginners
As a C# developer you expose functionality using classes and objects. Many a times the code required to accomplish a task using these classes and objects tends to be complex. In an attempt to reduce this complexity you might want to device a technique that makes your code more readable and natural. That is where Fluent Interface and Method Chaining can be useful. The remainder of this article discusses these techniques with simple examples. My aim is to quickly introduce you to these concepts. So, the examples are kept simple rather than building a full-fledge example.
Sponsored Links
Related Topics
Microsoft.NET
- Chapter 2: Protecting Your Database with Startup Options
- { End Bracket }: Hacking the Immune System
- C++ At Work: Copy Constructors, Assignment Operators, and More
- .NET Matters: Stream Decorator, Single-Instance Apps
- Security Briefs: Credentials and Delegation
- Design Patterns: Dependency Injection
- Test Run: Low-Level UI Test Automation
- Advanced Basics: Revisiting Operator Overloading
- Cutting Edge: ASP.NET Forms
- Web Q&A: Smart Navigation, ASP.NET Project Structure, and More