Hello,

Working for a Dutch customer, we needed a way to customize some enums,
so that he sees the texts in Dutch and we work with the English member
names.
Therefore i added a Description attribute to each member of the enums.

public enum MaterialType
{
        [Description( "Tegels" )]
        Tiles=1,
        [Description("Klinkers")]
        PavementStones
}

these attributes are read by some extension methods.

So far, so good, but we needed a way to create the selects, options,
radio/checkbox inputs with dutch texts as well.
EnumToPairs is only using TextHelper.PascalCaseToWord which wasn't
good enough.
Therefore, I created a small patch (and a couple of tests) for
EnumToPairs method, that can be used to invoke an extension method of
the enum type.

I can submit the code for review and perhaps to be included in the
official codebase.
What do you say?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to