internal static PatchInfo GetPatchInfo(MethodBase method) { var bytes = GetState().GetValueSafe(method); if (bytes == null) { return(null); } return(PatchInfoSerialization.Deserialize(bytes)); }
public int CompareTo(object obj) { return(PatchInfoSerialization.PriorityComparer(obj, index, priority, before, after)); }
/// <summary>Determines how patches sort</summary> /// <param name="obj">The other patch</param> /// <returns>integer to define sort order (-1, 0, 1)</returns> /// public int CompareTo(object obj) { return(PatchInfoSerialization.PriorityComparer(obj, owner, index, priority)); }