官术网_书友最值得收藏!

Standards

Standards are important; that's why we have so many of them. The latest version of the .NET Standard is version 2, and .NET Core 2 implements this. A good way to think about .NET Standard is it's an interface that a class would implement. The interface will define an abstract API, but the concrete implementation of this API will be left to the classes that inherit from it. Another way to think about this is like the HTML5 standard that is supported by different web browsers.

Version 2 of the .NET Standard was defined by looking at the intersection of the .NET Framework and Mono. This standard was then implemented by .NET Core 2, which is why it contains more APIs than version 1. Version 4.6.1 of the .NET Framework also implements .NET Standard 2, and there is work to support the latest versions of the .NET Framework, UWP, and Xamarin (including Xamarin.Forms).

There is also the new XAML Standard that aims to find a common ground between Xamarin.Forms and UWP. Hopefully, it will include Windows Presentation Foundation (WPF) in future. As this is a book about web applications, we won't go into XAML and native user interfaces.

If you create libraries and packages that use these standards, then they will work on all the platforms that support them. As a developer who simply consumes libraries, you don't need to worry about these standards. It just means that you are more likely to be able to use the packages that you want on the platforms you are working with.

主站蜘蛛池模板: 高州市| 广平县| 吕梁市| 田东县| 卢湾区| 乐山市| 定安县| 彭山县| 安溪县| 牟定县| 汤原县| 崇信县| 建始县| 额尔古纳市| 咸丰县| 长乐市| 石泉县| 汪清县| 镇江市| 若尔盖县| 苏尼特右旗| 阿荣旗| 黎川县| 临颍县| 北流市| 德江县| 顺昌县| 大田县| 保亭| 万山特区| 苍梧县| 巴里| 龙州县| 屯留县| 遂溪县| 岳普湖县| 镇平县| 岐山县| 嵊泗县| 墨竹工卡县| 肥城市|