Last active
March 9, 2020 23:24
-
-
Save gdonega/40ca855fb2a0e53c937c40b195bc0f5b to your computer and use it in GitHub Desktop.
C# - Enum: TiposJogosComAtributo - Atributo
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; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace TiposJogosComAtributo.Atributos | |
{ | |
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)] | |
public class Descricao : Attribute | |
{ | |
public string Valor { get; private set; } | |
public Descricao(string valor) | |
{ | |
Valor = valor; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment