Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9f865a1028
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (35 sloc) 1.042 kb
using System;
namespace CLAP
{
/// <summary>
/// Marks a method as a global parameter.
/// The method can either accept any single allowed parameter type or accept
/// no parameters and be treated as a boolean switch.
/// </summary>
[Serializable]
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class GlobalAttribute : Attribute
{
/// <summary>
/// The additional aliases (as CSV) of the parameter
/// </summary>
public string Aliases { get; set; }
/// <summary>
/// The description of this parameter
/// </summary>
public string Description { get; set; }
/// <summary>
/// The name of this parameter
/// </summary>
public string Name { get; private set; }
public GlobalAttribute()
: this(null)
{
}
public GlobalAttribute(string name)
{
Aliases = string.Empty;
Name = name;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.