Esempio n. 1
0
 internal IEnumerable <FieldDesc> GetDiagnosticFields()
 {
     if (HasNativeLayout)
     {
         // Universal template fields get diagnostic info, but normal canon templates do not
         if (IsTemplateUniversal())
         {
             NativeLayoutFieldAlgorithm.EnsureFieldLayoutLoadedForGenericType(this);
             return(NativeLayoutFields);
         }
         return(FieldDesc.EmptyFields);
     }
     else
     {
         // This will only happen for fully formed metadata based loads...
         return(GetFields());
     }
 }
Esempio n. 2
0
 public FieldDesc GetFieldByNativeLayoutOrdinal(uint ordinal)
 {
     NativeLayoutFieldAlgorithm.EnsureFieldLayoutLoadedForGenericType(this);
     return(NativeLayoutFields[ordinal]);
 }