Click here to Skip to main content
15,893,722 members
Articles / Desktop Programming / Windows Forms

Storm - the world's best IDE framework for .NET

Rate me:
Please Sign up or sign in to vote.
4.96/5 (82 votes)
4 Feb 2010LGPL311 min read 277K   6.5K   340  
Create fast, flexible, and extensible IDE applications easily with Storm - it takes nearly no code at all!
namespace Storm.Plugins.Attributes
{
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;

	using Storm;
	using Storm.Plugins;
	using Storm.Plugins.Attributes;
	using Storm.Plugins.Classes;
	using Storm.Plugins.Enums;
	using Storm.Plugins.Interfaces;

	/// <summary>
	/// Attribute that holds plugin information.
	/// </summary>
	[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
	public sealed class Plugin : Attribute
	{
		#region Fields
		private readonly string _name        = "";
		private readonly string _author      = "";
		private readonly string _description = "";
		private readonly string _version     = "";
		#endregion

		#region Properties
		/// <summary>
		/// Gets the name of the Plugin.
		/// </summary>
		public string Name
		{ get { return _name; } }

		/// <summary>
		/// Gets the author of the Plugin.
		/// </summary>
		public string Author
		{ get { return _author; } }

		/// <summary>
		/// Gets the description of the Plugin.
		/// </summary>
		public string Description
		{ get { return _description; } }

		/// <summary>
		/// Gets the version of the Plugin.
		/// </summary>
		public string Version
		{ get { return _version; } }
		#endregion

		/// <summary>
		/// Initializes the Plugin.
		/// </summary>
		/// <param name="name">Name of the Plugin.</param>
		/// <param name="author">Author of the Plugin.</param>
		/// <param name="description">Description of the Plugin.</param>
		/// <param name="version">Version of the Plugin.</param>
		public Plugin(string name, string author, string description, string version)
		{
			_name = name;
			_author = author;
			_description = description;
			_version = version;
		}
	}
}

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, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)



Comments and Discussions