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

            if (bytes == null)
            {
                return(null);
            }
            return(PatchInfoSerialization.Deserialize(bytes));
        }
 internal static PatchInfo GetPatchInfo(MethodBase method)
 {
     byte[] bytes;
     lock (state) bytes = state.GetValueSafe(method);
     if (bytes is null)
     {
         return(null);
     }
     return(PatchInfoSerialization.Deserialize(bytes));
 }
Beispiel #3
0
 internal static PatchInfo GetPatchInfo(MethodBase method)
 {
     return(WithState(() =>
     {
         var bytes = state.GetValueSafe(method);
         if (bytes is null)
         {
             return null;
         }
         return PatchInfoSerialization.Deserialize(bytes);
     }));
 }