如何在 C# 中从 emailID 字符串“feedback@abc.com”中获取“@”字符的左侧
谢谢
最佳答案
string email = "feedback@abc.comm";
int index = email.IndexOf("@");
string user = (index > 0 ? email.Substring(0, index) : "");
关于c# - C#中字符串中字符的左侧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2971055/