internal static PatchInfo GetPatchInfo(MethodBase method)
        {
            var bytes = GetState().GetValueSafe(method);

            if (bytes == null)
            {
                return(null);
            }
            return(PatchInfoSerialization.Deserialize(bytes));
        }
示例#2
0
 public int CompareTo(object obj)
 {
     return(PatchInfoSerialization.PriorityComparer(obj, index, priority, before, after));
 }
示例#3
0
 /// <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));
 }