Last active
November 22, 2019 19:28
-
-
Save InvaderZim85/a5ca1711cf7cae6bad2671ba4e870bff to your computer and use it in GitHub Desktop.
Custom attribute for the NancyFx metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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