使用C#我如何确保下面代码中的'val'对象是小写?将对象键转换为小写
case MultiValueUpdateMode.AddIfNotExist:
if (value != null)
{
// Add the values only if they do not exist
foreach (var val in newValues)
{
if (!userDe.Properties["proxyAddresses"].Contains(val))
userDe.Properties["proxyAddresses"].Add(val);
}
}
break;
你没有给我们足够的信息,但是你可以使用ToLower将()扩展方法的字符串。 –