Tech Tutorials Database
GeekArticles Microsoft Microsoft.NET

Fluent interface and method chaining in C# for beginners

Category: Microsoft.NET
Comments (0)

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

Read Next: Determine if String str2 is a Rotation of String str1