public CorOverride[] GetOverrides() { var mod = Module; var info = MDAPI.GetMethodOverrides(mod?.GetMetaDataInterface <IMetaDataImport>(), Token); if (info.Length == 0) { return(Array.Empty <CorOverride>()); } var res = new CorOverride[info.Length]; for (int i = 0; i < res.Length; i++) { res[i] = new CorOverride(mod, info[i]); } return(res); }
public CorOverride[] GetOverrides() { var mod = Module; var mdi = mod == null ? null : mod.GetMetaDataInterface <IMetaDataImport>(); var info = MDAPI.GetMethodOverrides(mdi, Token); if (info.Length == 0) { return(emptyCorOverrides); } var res = new CorOverride[info.Length]; for (int i = 0; i < res.Length; i++) { res[i] = new CorOverride(mod, info[i]); } return(res); }