yacep icon indicating copy to clipboard operation
yacep copied to clipboard

如何使int与string相加?

Open softworm opened this issue 2 years ago • 0 comments

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

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

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

softworm avatar Jun 06 '23 07:06 softworm