Click here to Skip to main content
11,585,128 members (72,867 online)
Click here to Skip to main content
Add your own
alternative version

Evolving Responsible, Self-Describing Components

, 25 Apr 2008 CPOL 15.5K 34 29
How self-describing components can emerge from responsibility-driven development practices, and how use of the Visual Studio 'code regions' tool can add value to this process.
 * Copyright 2008 Oculo Consulting Limited
using System;

namespace ResponsibilitiesExample
    public class MessageForwardedEventArgs : EventArgs
        public readonly IMessage Message;

        public MessageForwardedEventArgs(IMessage message)
            Message = message;

    public interface IMessageQueue : IMessageHandler
        event EventHandler<MessageForwardedEventArgs> MessageForwarded;

        void Purge();

        int MessageCount

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Matthew Cannon
Software Developer (Senior) Oculo Consulting Limited
United Kingdom United Kingdom
Matthew Cannon is a software developer and architect who has for the last 10 years focused on object-oriented design. His areas of interest are OOD, patterns, Agile practices, C# and all things .Net.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150707.1 | Last Updated 25 Apr 2008
Article Copyright 2008 by Matthew Cannon
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid