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

热更工程使用主工程标签,主工程获取,如果这个标签有多个参数则无法正常获取 #593

Closed
JasonXuDeveloper opened this issue Sep 27, 2021 · 3 comments

Comments

@JasonXuDeveloper
Copy link
Contributor

如题,主工程有pbnet的标签,热更工程去使用,如果使用的时候参数不止一个,则主工程的member.GetCustomAttributes(inherit);会取到null,这里的member是个memberInfo,inherit是false。

可以正常用的标签

[global::ProtoBuf.ProtoMember(1)]

会出问题的标签

[global::ProtoBuf.ProtoMember(1, DataFormat = ProtoBuf.DataFormat.FixedSize)]
@JasonXuDeveloper
Copy link
Contributor Author

补充一下,今天测试发现,字段打这种标签没问题,属性不能打,会无法获取

@JasonXuDeveloper
Copy link
Contributor Author

应该是热更内标签的参数不可以基础类型

@liiir1985
Copy link
Collaborator

热更内Attributte参数不能为非基础类型

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

No branches or pull requests

2 participants