ArgumentAlias.cs 418 B

12345678910111213141516
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace System.ConsoleApp {
  5. [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true)]
  6. public class ArgumentAlias : System.Attribute {
  7. private string _name;
  8. public ArgumentAlias(string alias) {
  9. this._name = alias;
  10. }
  11. public string Alias => this._name;
  12. }
  13. }