Skip to content

Instantly share code, notes, and snippets.

@jindeveloper
Created August 21, 2020 07:20
Show Gist options
  • Select an option

  • Save jindeveloper/0949e09b6c003095d150d0d50c5e97ba to your computer and use it in GitHub Desktop.

Select an option

Save jindeveloper/0949e09b6c003095d150d0d50c5e97ba to your computer and use it in GitHub Desktop.
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