gpt4 book ai didi

c# - Visual C# .NET 消息框

转载 作者:行者123 更新时间:2023-11-30 14:41:49 26 4
gpt4 key购买 nike

我的问题是我们可以写:

String s="Sarath";
MessageBox.Show("My Name is Sarath {0}",s);

我想在 {0}..... 获取名称有什么办法...

提前致谢。

最佳答案

使用String.Format为此;)

关于c# - Visual C# .NET 消息框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3740562/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com