// Token: 0x06000195 RID: 405 RVA: 0x000108AC File Offset: 0x0000EAAC public static void LoadOverride(MethodInfo method) { OverrideAttribute attribute = (OverrideAttribute)Attribute.GetCustomAttribute(method, typeof(OverrideAttribute)); if (OverrideManager.Overrides.Count((KeyValuePair <OverrideAttribute, OverrideWrapper> a) => a.Key.Method == attribute.Method) > 0) { return; } OverrideWrapper overrideWrapper = new OverrideWrapper(attribute.Method, method, attribute, null); overrideWrapper.Override(); OverrideManager.Overrides.Add(attribute, overrideWrapper); }
// Token: 0x0600019E RID: 414 RVA: 0x00010B88 File Offset: 0x0000ED88 public static bool DisableOverride(MethodInfo method) { OverrideWrapper value = OverrideManager.Overrides.First((KeyValuePair <OverrideAttribute, OverrideWrapper> a) => a.Value.Original == method).Value; return(value != null && value.Revert()); }