Skip to content

Commit

Permalink
Add metadatatoken override to SymbolMethod (#54656)
Browse files Browse the repository at this point in the history
* Add metadatatoken override to SymbolMethod

* Add test

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
  • Loading branch information
KevinRansom and jkotas committed Jun 26, 2021
1 parent a766647 commit 32b58a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ internal int GetToken(ModuleBuilder mod)
#endregion

#region MemberInfo Overrides
public override int MetadataToken => m_token;

public override Module Module => m_module;

public override Type? ReflectedType => m_containingType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ private void VerifyGetArrayMethod(ModuleBuilder module, Type arrayClass, string
Assert.Equal(methodName, method.Name);
Assert.Equal(callingConvention, method.CallingConvention);
Assert.Equal(returnType, method.ReturnType);
Assert.NotEqual(0, method.MetadataToken);
}
}
}

0 comments on commit 32b58a1

Please sign in to comment.