Fixed typo: nethodBody -> methodBody.

This commit is contained in:
Stano Peťko 2017-11-13 18:20:55 +01:00
parent f0c84572b7
commit 84c520a71c

View File

@ -317,10 +317,10 @@ namespace System.Diagnostics
ordinal = null; ordinal = null;
foreach (var candidateMethod in candidateMethods) foreach (var candidateMethod in candidateMethods)
{ {
var nethodBody = candidateMethod.GetMethodBody(); var methodBody = candidateMethod.GetMethodBody();
if (kind == GeneratedNameKind.LambdaMethod) if (kind == GeneratedNameKind.LambdaMethod)
{ {
foreach (var v in EnumerableIList.Create(nethodBody?.LocalVariables)) foreach (var v in EnumerableIList.Create(methodBody?.LocalVariables))
{ {
if (v.LocalType == type) if (v.LocalType == type)
{ {
@ -333,7 +333,7 @@ namespace System.Diagnostics
} }
} }
var rawIL = nethodBody?.GetILAsByteArray(); var rawIL = methodBody?.GetILAsByteArray();
if (rawIL == null) continue; if (rawIL == null) continue;
var reader = new ILReader(rawIL); var reader = new ILReader(rawIL);