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()); } }
public FieldDesc GetFieldByNativeLayoutOrdinal(uint ordinal) { NativeLayoutFieldAlgorithm.EnsureFieldLayoutLoadedForGenericType(this); return(NativeLayoutFields[ordinal]); }