Merge pull request #18 from satano/TypoNethodBody

Fixed typo: nethodBody -> methodBody.
This commit is contained in:
Ben Adams 2017-11-13 20:45:17 +01:00 committed by GitHub
commit fa0ad4ca52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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