title: TypeDescriptor Not Found in Silverlight 5
body: <p>I found this Validation Example for MVVM WPF at <a href="http://code.msdn.microsoft.com/windowsdesktop/Validation-in-MVVM-using-12dafef3" rel="nofollow">http://code.msdn.microsoft.com/windowsdesktop/Validation-in-MVVM-using-12dafef3</a></p>
  
  <p>I'm trying to use it In my Silverlight 5 project. The challenge is Silverlight 5 doesn't have 
  TypeDescriptor in its ComponentModel dll. </p>
  
  <p><a href="http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/" rel="nofollow">http://lostechies.com/jimmybogard/2010/02/19/automapper-for-silverlight-3-0-alpha/</a></p>
  
  <p>So How I can Use it or is there Any work Around for this. I don't know much about reflections.</p>
  
  <p>Please guide.</p>
  
  <pre><code> var propertyDescriptor = TypeDescriptor.GetProperties(GetType()).Find(propertyName, false);
              if (propertyDescriptor == null)
              {
                  throw new ArgumentException("Invalid property name", propertyName);
              }
  
              value = propertyDescriptor.GetValue(this);
              _values.Add(propertyName, value);
  </code></pre>