MVP Chris Eagle hat die Version 1.0.0.0 der Bibliothek Fluent.NET veröffentlicht, die zu einer verbesserten Schreib- und Lesbarkeit von .NET-Code beitragen soll. Zu den Features gehören laut Eagle:
- Use fluent interfaces simply by adding a reference to the desired assembly then using the Fluent namespace.
- Interfaces compartmentalized by feature area: General is in fluent.dll, web is in fluent.web.dll. Don’t import needless assemblies into your project.
- Execute an action over a sequence using the Execute method. E.g. clients.Execute(c => c.Persist());
- Easily create a sequence of numbers using the To method: 1.To(5);. It even counts down: 1.To(-5);
- Open and write to a file in one fluid motion: File.ReadAllLines(„file.txt“).Select(line => line.FormatWith(Guid.NewGuid()).Write(„file.txt“);
Fluent.NET 1.0.0.0 steht auf CodePlex zum Download bereit
.