A simple example of a fluent interface(weblogs.asp.net)
submitted by
jongalloway(4350) 5 years, 2 months ago
A fluent interface can make your code much easier to use by allowing users to write code like this:
imageFilter.Rotate(90)
.Watermark("Monkey")
.RoundCorners(100, Color.Bisque)
.Save("test.png");
This article shows how and why you should add fluent interfaces to your toolbelt.
|category: C#
|Views: 22
tags:
JonGalloway C# another
Everyones tags:
Your Tags: