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
using System; | |
using System.Collections.Generic; | |
namespace EnumHelpers | |
{ | |
[AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field, AllowMultiple = false)] | |
public sealed class EnumDescriptionAttribute : Attribute | |
{ | |
public string Description { get; private set; } | |
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
void Main() | |
{ | |
new Square(-3,-1).Dump(); | |
} | |
public class Square | |
{ | |
public Square(int x, int y) | |
{ | |
this.x = x; |