Click here to Skip to main content
15,886,638 members
Articles / Programming Languages / C#

Introducing Castle - Part I

Rate me:
Please Sign up or sign in to vote.
4.90/5 (56 votes)
30 Dec 200414 min read 270.7K   1.5K   167  
Introduces the benefits of using an inversion of control approach to design a system.
<?xml version="1.0" encoding="utf-8" ?> 


    <castle>
        <components>
            <component id="smtpemailsender">
                <parameters>
                    <host>localhost</host>
                    <port>110</port>
                </parameters>
            </component>
            <component id="connectionFactory">
              <parameters>
                <connectionString>put a real connection string here someday</connectionString>
              </parameters>
            </component>
        </components>
    </castle>

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Brazil Brazil
Hamilton Verissimo has been working with software development for 9 years. He's involved with a lot of open source projects to fill his spare time.

Comments and Discussions