C#语句修改
583行是C#8.0版本支持语法,这一句怎么修改可以兼容Unity,当前不兼容Unity.
[项目源码]https://github.com/twcclegg/libphonenumber-csharp/blob/master/csharp/PhoneNumbers/BuildMetadataFromXml.cs
回答
只能這樣吧
if (element.Attribute(LOCAL_ONLY) is { }){
var localLengths = element.Attribute(LOCAL_ONLY);
//...
}
以上是 C#语句修改 的全部内容, 来源链接: utcz.com/a/103414.html