public static IEnumerable <MethodBase> AllPatchedMethods() { lock (locker) { return(HarmonySharedState.GetPatchedMethods()); } }
public static IEnumerable <MethodBase> AllPatchedMethods() { var obj = locker; IEnumerable <MethodBase> patchedMethods; lock (obj) { patchedMethods = HarmonySharedState.GetPatchedMethods(); } return(patchedMethods); }
/// <summary>Gets a patched methods</summary> /// <returns>An enumeration of original methods</returns> /// public IEnumerable <MethodBase> GetPatchedMethods() { return(HarmonySharedState.GetPatchedMethods()); }
/// <summary>Gets the methods this instance has patched</summary> /// <returns>An enumeration of original methods</returns> /// public IEnumerable <MethodBase> GetPatchedMethods() { return(HarmonySharedState.GetPatchedMethods() .Where(original => GetPatchInfo(original).Owners.Contains(Id))); }