title: Spring.net how to assign an enum value to property
body: <p>I've a class with the following property: </p>
  
  <pre><code>public class Animal
  {    
       public AnimalTypeEnum AnimalType { get; set; }
  }
  </code></pre>
  
  <p>and this following enum: </p>
  
  <pre><code>public enum AnimalTypeEnum 
  {
        Dog = 0,
        Cat = 1,
        Bird = 2,
  }
  </code></pre>
  
  <p>And i'd like to initiate an instance of my class via Spring.Net configuration file, in the following manner:</p>
  
  <pre><code> &lt;object id="MyAnimal" type="MyProg.Animal , MyProg"&gt;    
        &lt;property name="AnimalType" expression="MyProg.AnimalTypeEnum.Dog"/&gt;
   &lt;/object&gt;
  </code></pre>
  
  <p>So far I've little success to evaluate AnimalType.Dog, I've tried numerous ways, 
  any idea?</p>
  
  <p>The error message i'm getting: Cannot initialize property or field node 'MyProg' because the specified context is null</p>