|
|
|
@ -280,7 +280,9 @@ namespace ICSharpCode.Decompiler.IL.Transforms
@@ -280,7 +280,9 @@ namespace ICSharpCode.Decompiler.IL.Transforms
|
|
|
|
|
return target.MatchLdLocRef(objVar) |
|
|
|
|
|| (boxedValue && target.MatchLdLoc(objVar)) |
|
|
|
|
|| (usingNull && callVirt.Arguments[0].MatchLdNull()) |
|
|
|
|
|| (target.MatchIsInst(out var arg, out var type2) && arg.MatchLdLoc(objVar) && type2.IsKnownType(KnownTypeCode.IDisposable)); |
|
|
|
|
|| (isReference && checkInst is NullableRewrap |
|
|
|
|
&& target.MatchIsInst(out var arg, out var type2) |
|
|
|
|
&& arg.MatchLdLoc(objVar) && type2.IsKnownType(KnownTypeCode.IDisposable)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|