简体   繁体   English

UWP中的System.String

[英]System.String in UWP

From where does the reference of the System.String is being done in UWP application projects? 从哪里开始在UWP应用程序项目中完成System.String的引用?

I got this question as I have a String.Replace method option Replace(String, String, StringComparison) in any Android app projects which is referring in Xamarin.Android and same way in iOS app project referring Xamarin.iOS as well. 我遇到了这个问题,因为在Xamarin.Android中引用的任何Android应用程序项目中都有String.Replace方法选项Replace(String,String,StringComparison) ,在iOS应用程序项目中也引用Xamarin.iOS的方式相同。

But, in case of UWP, I am not able to get the same behaviour of String.Replace 但是,在UWP的情况下,我无法获得String.Replace的相同行为

EDIT : 编辑:

Adding to the question based on the comment that UWP is using .NET Core, is there is any documentation on which .NET Core version each of the UWP/Windows SDK version is using? 根据UWP正在使用.NET Core的注释添加到问题中,是否有任何文档说明每个UWP / Windows SDK版本使用的是.NET Core版本? Because, this option of String.Replace is something new in .NET Core 2.0 and above as I can understand from Microsoft Docs of the same as quoted above in link. 因为, String.Replace此选项是.NET Core 2.0及更高版本中的新功能,我从Microsoft Docs可以了解到,与上面在链接中引用的内容相同。

Based on some trials, what I can understand is UWP is using .NET core internally for some things at least from Fall Creators Update (16299) of UWP SDK . 基于一些试验,我能理解的是UWP至少在UWP SDK的Fall Creators Update(16299)中内部使用.NET核心。

The above mentioned way of String.Replace() function signature is something available in a project which is targeting UWP SDK version of Fall Creators Update (16299), but not any SDK version below that. 上面提到的String.Replace()函数签名方式是项目中可用的,它针对的是Fall Creators Update(16299)的UWP SDK版本,但不是下面的任何SDK版本。

But, .NET Core reference of UWP SDK is not something I could see anywhere officially mentioned in docs by Microsoft. 但是,UWP SDK的.NET Core参考并不是微软在文档中正式提到的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM