Click here to Skip to main content
11,477,625 members (75,079 online)
Click here to Skip to main content
Add your own
alternative version

Delegate Factory

, 11 Jan 2005 CPOL 42K 92 42
A dynamic factory using delegates.
using System;

namespace Objects
	#region Delegates

	/// <summary>
	/// A handler function for the factory to create objects;
	/// </summary>
	public delegate AObject ObjectCreator(params object [] list);


	/// <summary>
	/// Summary description for AObject.
	/// </summary>
	public abstract class AObject
		#region Override

		/// <summary>
		/// Force all descendents to implement.
		/// </summary>
		public abstract void Print();


		#region protected

		/// <summary>Some variable to play with.</summary>
		protected Int32 m_nType;


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

Asa Meltzer
Software Developer
Israel Israel
Software designer and programmer.
Programming languages:
MFC, C++, Java , C#, VB and sometimes C and assembly.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 11 Jan 2005
Article Copyright 2005 by Asa Meltzer
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid