Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复使用扩展方法不能获取到指定的Attibute的问题 #653

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

Endures
Copy link
Contributor

@Endures Endures commented Jan 29, 2022

System.Reflection.CustomAttributeExtensions.GetCustomAttribute与System.Attribute.GetCustomAttribute不能获取到指定的Attibute.原因为object[]不能强转为Attribute[],在重写相关方法时返回Attribute[]即可解决这个问题。

…e与System.Attribute.GetCustomAttribute不能获取到指定的Attibute的问题
@Endures
Copy link
Contributor Author

Endures commented Jan 29, 2022

已添加了相关的3个测试用例

@liiir1985 liiir1985 merged commit 3ee7017 into Ourpalm:master Feb 10, 2022
@Endures Endures deleted the Fix-Get-Custom-Attributes branch March 16, 2022 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants