Fluent Interface Design in .NET: Listing 2

EmailMessage non-fluent API implementation.

EmailMessage.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace VSMFluentInterfaces.Email
{
    public partial class EmailMessage 
    {
        public String FromAddress { get; set; }
        public String ToAddress { get; set; }
        public String Subject { get; set; }
        public String Message { get; set; }

        public EmailMessage() {}
    }
}

About the Author

Eric Vogel is a Sr. Software Developer at Kunz, Leigh, & Associates in Okemos, MI. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at vogelvision@gmail.com.