Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Bug fix. ModuleReader.ResolveMember() should support types. Thanks to…
Browse files Browse the repository at this point in the history
… Jb Evain for finding this.
  • Loading branch information
jfrijters committed Oct 19, 2012
1 parent ac0a293 commit d6f1990
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reflect/Reader/ModuleReader.cs
Expand Up @@ -616,6 +616,10 @@ public override MemberInfo ResolveMember(int metadataToken, Type[] genericTypeAr
case MethodDefTable.Index:
case MethodSpecTable.Index:
return ResolveMethod(metadataToken, genericTypeArguments, genericMethodArguments);
case TypeRefTable.Index:
case TypeDefTable.Index:
case TypeSpecTable.Index:
return ResolveType(metadataToken, genericTypeArguments, genericMethodArguments);
default:
throw TokenOutOfRangeException(metadataToken);
}
Expand Down

0 comments on commit d6f1990

Please sign in to comment.