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 Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. 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 [email protected].

comments powered by Disqus

Featured

Subscribe on YouTube