sourcecode problem at enum
<p>Goal:<br>
Assign an enum value to the animalType object.</p>

<blockquote>
  <p>Categories.CategoryType animalType =
  (CategoryType)Enum.Parse(GetType(CategoryType),
  pCategory);</p>
</blockquote>

<p>Problem:
The source code does not work properly and it gives me two error messages:</p>

<blockquote>
  <p>"Assignment1.Categories.CategoryType' is a 'type' but is used like a
  'variable'"</p>
  
  <p>"No overload for method 'GetType' takes 1 arguments"</p>
</blockquote>

<pre><code>namespace Assignment1
{
    class AnimalManager
    {
        private List&lt;IAnimal&gt; _myAnimal = new List&lt;IAnimal&gt;();

        public void CreateNewAnimal(string pName, string pHousing, string pAge, string pCategory, string pAnimal, string pEater, string pGender)
        {
            Categories.CategoryType animalType = (CategoryType)Enum.Parse(GetType(CategoryType), pCategory);
        }
    }
}
</code></pre>

<hr>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Assignment1.Categories
{
    /// &lt;summary&gt;
    /// 
    /// &lt;/summary&gt;
    public enum CategoryType
    {
        Mammal,
        Bird,
        Marine,
        Reptile,
        Insect
    }
}
</code></pre>
