title: System.ArgumentException: Get Method not found for 'XXXXXXX' at System.Reflection.MonoPropert
body: <p>whenever am trying to access the value of a property through <code>reflection</code> am getting a error like</p>
  
  <blockquote>
    <p>"System.ArgumentException: Get Method not found for 'XXXX' at
    System.Reflection.MonoProperty.Get"</p>
  </blockquote>
  
  <p>. Am using Xamarin studio version 6.3 and property also declared as <code>public</code> only.</p>
  
  <p>Model:</p>
  
  <pre><code>using System;
  namespace XXXX.Core
  {
      public class ManufacturingParameters
      {
          public ManufacturingParameters()
          {
          }
  
          private int oemCode;
          public int OEMCode
          {
              get { return oemCode; }
              set { oemCode = value; }
          }
      }
  }
  </code></pre>
  
  <p>Ex Code: </p>
  
  <pre><code>ValueString = deviceInfoContentVC.devInfo.manufacturingParameters.GetType().GetProperty(ParamSchema.Key).GetValue(deviceInfoContentVC.devInfo.manufacturingParameters).ToString();
  </code></pre>
  
  <p>The above code works perfectly in Visual studio but not in xamarin studio.</p>
  
  <p>But I can access the same property through below code:</p>
  
  <pre><code>ValueString = deviceInfoContentVC.devInfo.manufacturingParameters.oemCode.ToString();
  </code></pre>
  
  <p>Since i wanted to access it dynamically i need <code>reflection</code> kind of mechanism.</p>
  
  <p>Is there any alternative solution/fix for this?</p>
  
  <p>Thank You.</p>