views:

43

answers:

2

Hi all!

I have a class with collection of enums:

Class1.cs

public enum Language
{
    Serbian = 1,
    Croatian,
    Ukrainian,
}

public class Class1
{
   private IList<Language> m_languages = new List<Language>();
   public virtual IList<Language> Languages
   {
          get { return m_languages; }
          set { m_languages = value; }
   }
}

What is the content of mapping file for this class?

+1  A: 

As an alternative, you may want to consider something a little 'smarter' than enums; take for instance Fabio's Well Known Instance Type example - I find myself using these all the time for (relatively) static data.

DanP