Created
August 21, 2020 07:20
-
-
Save jindeveloper/0949e09b6c003095d150d0d50c5e97ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| using System; | |
| namespace CSharp_Attributes_Walkthrough.My_Custom_Attributes | |
| { | |
| public class AliasAttribute : Attribute | |
| { | |
| /// <summary> | |
| /// These parameters will become mandatory once have you decided to use this attribute. | |
| /// </summary> | |
| /// <param name="alias"></param> | |
| /// <param name="color"></param> | |
| public AliasAttribute(string alias, ConsoleColor color) | |
| { | |
| this.Alias = alias; | |
| this.Color = color; | |
| } | |
| public string Alias { get; private set; } | |
| public ConsoleColor Color { get; private set; } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment