Skip to content

Commit

Permalink
explaining enum.Humanize for DescriptionAttr better
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiK committed Mar 26, 2014
1 parent b67c7cf commit 551ee82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ EnumUnderTest.MemberWithoutDescriptionAttribute.Humanize() => "Member without de
EnumUnderTest.MemberWithoutDescriptionAttribute.Humanize().Transform(To.TitleCase) => "Member Without Description Attribute"
```

You are not limited to `DescriptionAttribute` for custom description. Any attribute applied on enum members with a string `Description` field counts.
This is to help with platforms with missing `DescriptionAttribute` and also for using subclasses of the attribute.
You are not limited to `DescriptionAttribute` for custom description. Any attribute applied on enum members with a `string Description` property counts.
This is to help with platforms with missing `DescriptionAttribute` and also for allowing subclasses of the `DescriptionAttribute`.

Hopefully this will help avoid littering enums with unnecessary attributes!

Expand Down

0 comments on commit 551ee82

Please sign in to comment.