mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:42:58 +00:00
- code refactoring
- made more and more easily extensible: * commands automatically loaded from plugins dlls * declarative and automatic command parameter parsing * common code moved to base classes - other fixes svn path=/trunk/; revision=33344
This commit is contained in:
parent
e3407fdd9c
commit
d7b2077ed8
42 changed files with 2263 additions and 1689 deletions
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
|
||||
namespace TechBot.Library
|
||||
{
|
||||
/// <summary>
|
||||
/// This class implements an alias attribute to work in conjunction
|
||||
/// with the <see cref="CommandLineSwitchAttribute">CommandLineSwitchAttribute</see>
|
||||
/// attribute. If the CommandLineSwitchAttribute exists, then this attribute
|
||||
/// defines an alias for it.
|
||||
/// </summary>
|
||||
[AttributeUsage( AttributeTargets.Property )]
|
||||
public class CommandParameterAliasAttribute : Attribute
|
||||
{
|
||||
#region Private Variables
|
||||
protected string m_Alias = "";
|
||||
#endregion
|
||||
|
||||
#region Public Properties
|
||||
public string Alias
|
||||
{
|
||||
get { return m_Alias; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
public CommandParameterAliasAttribute(string alias)
|
||||
{
|
||||
m_Alias = alias;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue