Skip to content

Instantly share code, notes, and snippets.

@InvaderZim85
Last active November 22, 2019 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InvaderZim85/a5ca1711cf7cae6bad2671ba4e870bff to your computer and use it in GitHub Desktop.
Save InvaderZim85/a5ca1711cf7cae6bad2671ba4e870bff to your computer and use it in GitHub Desktop.
Custom attribute for the NancyFx metadata
[AttributeUsage(AttributeTargets.Constructor, AllowMultiple = true)]
public class RouteDescriptionAttribute : Attribute
{
public string Name { get; }
public string Description { get; }
public RouteDescriptionAttribute(string name, string description)
{
Name = name;
Description = description;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment