Ejemplo n.º 1
0
 public MethodJitResult(RuntimeMethodHandle handle, MethodJitStatus status)
 {
     Handle  = handle.Value;
     Pointer = GetIsSuccess(status)
             ? handle.GetFunctionPointer()
             : (IntPtr?)null;
     Status = status;
 }
Ejemplo n.º 2
0
 public MethodJitResult(RuntimeMethodHandle handle, MethodJitStatus status, bool isGeneric)
 {
     Handle  = handle.Value;
     Pointer = status == MethodJitStatus.Success
             ? handle.GetFunctionPointer()
             : (IntPtr?)null;
     Status    = status;
     IsGeneric = isGeneric;
 }
Ejemplo n.º 3
0
 public MethodJitResult(RuntimeMethodHandle handle, MethodJitStatus status)
 {
     Handle  = handle.Value;
     Pointer = status != MethodJitStatus.GenericOpenNoAttribute ? handle.GetFunctionPointer() : (IntPtr?)null;
     Status  = status;
 }
Ejemplo n.º 4
0
 private static bool GetIsSuccess(MethodJitStatus status)
 {
     return(status == MethodJitStatus.Success ||
            status == MethodJitStatus.SuccessGeneric);
 }