using System;
public class CommandLineSwitchAliasAttribute : Attribute
{
public CommandLineSwitchAliasAttribute(string alias)
{
Alias = alias;
}
public string Alias
{
get { return _Alias; }
set { _Alias = value; }
}
private string _Alias;
}
class CommandLineInfo
{
[CommandLineSwitchAliasAttribute("?")]
public bool Help
{
get { return _Help; }
set { _Help = value; }
}
private bool _Help;
}
|