// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
@@ -358,7 +358,7 @@ private static void SkipRecord(byte[] bytes, ref int offset, int size)
{
switch(record.Kind)
{
caseCustomDebugInfoKind.UsingInfo:
caseCustomDebugInfoKind.UsingGroups:
if(!groupSizes.IsDefault)
{
thrownewInvalidOperationException(string.Format("Expected at most one Using record for method {0}",FormatMethodToken(methodToken)));
...
...
@@ -367,7 +367,7 @@ private static void SkipRecord(byte[] bytes, ref int offset, int size)
groupSizes=DecodeUsingRecord(record.Data);
break;
caseCustomDebugInfoKind.ForwardInfo:
caseCustomDebugInfoKind.ForwardMethodInfo:
if(!externAliasStrings.IsDefault)
{
thrownewInvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}",FormatMethodToken(methodToken)));
...
...
@@ -385,7 +385,7 @@ private static void SkipRecord(byte[] bytes, ref int offset, int size)
break;
caseCustomDebugInfoKind.ForwardToModuleInfo:
caseCustomDebugInfoKind.ForwardModuleInfo:
if(!externAliasStrings.IsDefault)
{
thrownewInvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}",FormatMethodToken(methodToken)));