0

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?

christo
  • 671
  • 1
  • 8
  • 26

2 Answers2

2

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
  • 6,310
  • 4
  • 40
  • 68