title: .net-native enum.GetValues trouble
body: <p>I'm trying to make my app (for Windows 10) working under .NET native.</p>
  
  <p>I got stuck with the following issue: <code>Enum.GetValues</code> fails at runtime with metadata is missing. I managed to simplify test case for this problem (in real life my code looks different). In portable library I have: </p>
  
  <pre><code>public enum enumValues
  {        
      A1,     
      B1,        
      C1,
  }
  
  public class fff
  {
      public static object GetClass2Value()
      {
          return enumValues.B1;
      }
  }
  </code></pre>
  
  <p>In my Universal Windows app I call the following code:</p>
  
  <pre><code>Array aaa = Enum.GetValues(fff.GetClass2Value().GetType());
  </code></pre>
  
  <p>I receive the following exception:</p>
  
  <blockquote>
    <p>Additional information: 'enumlibportable.enumValues[]' is missing metadata.</p>
  </blockquote>
  
  <p>The problem is that I have no idea what to add to Default.rd.xml. I've tried to add different rd strings (enum subtype, enumValues class, enumValues[] etc.) using microsoft tool <a href="http://go.microsoft.com/fwlink/?LinkID=392859" rel="nofollow">http://go.microsoft.com/fwlink/?LinkID=392859</a>, but had no luck.</p>
  
  <p><strong>UPDATE</strong>: 
  I know that the following code will work for my testcase <code>Enum.GetValues(typeof(enumValue))</code>, but I can't use it in my real project since I don't know the exact enum type in my real project.</p>