update to dotnet 8
This commit is contained in:
@@ -11,10 +11,10 @@ public static class MethodTools
|
||||
var (_, operand) = PatchProcessor.ReadMethodBody(method).First();
|
||||
|
||||
if (operand is not LocalVariableInfo localVar)
|
||||
throw new InvalidOperationException($"Method {method.GetID()} does not contain a valid async state machine");
|
||||
throw new InvalidOperationException($"Method {method.FullDescription()} does not contain a valid async state machine");
|
||||
|
||||
return AccessTools.Method(localVar.LocalType, "MoveNext") ??
|
||||
throw new InvalidOperationException(
|
||||
$"Async State machine of method {method.GetID()} does not contain a valid MoveNext method");
|
||||
$"Async State machine of method {method.FullDescription()} does not contain a valid MoveNext method");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user