Click here to Skip to main content
12,620,840 members (36,792 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads


97 bookmarked

A simple plug-in engine using Reflection

, 26 Sep 2012 CPOL
This article describes how to create and use configurable plug-ins in your application.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Text.RegularExpressions;

namespace WebDownloadPlugin
    public sealed class WebDownloadPlugin : PluginBase.PluginBase
        public WebDownloadPlugin()
            Name = "WebDownloadPlugin";
            Description = "WebDownloadPlugin";

        public override void Run()
            string html = String.Empty;
            using (var wc = new WebClient())
                html = wc.DownloadString("");
            Console.WriteLine(Regex.Match(html, @"<title>\s*(.+?)\s*</title>").Groups[1]);


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

Vitaly Zhukov
Software Developer
Russian Federation Russian Federation
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 27 Sep 2012
Article Copyright 2012 by Vitaly Zhukov
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid