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

如何使int与string相加? #8

Open
softworm opened this issue Jun 6, 2023 · 0 comments
Open

如何使int与string相加? #8

softworm opened this issue Jun 6, 2023 · 0 comments

Comments

@softworm
Copy link

softworm commented Jun 6, 2023

假设 p 为 new { int a },那么在"p.a + 'str'"会报不支持+操作。

尝试 "p.a.ToString() + 'str'"会报AmbiguousMatchException。

请问下这时是否必须得自定义函数或操作符实现?:smile:

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

1 participant