How to tell if a class is supported by .Net Standard Library?

泄露秘密 提交于 2019-12-21 21:06:25

问题


My current specific situation is that I want to use DataContractSerializer Class in a library supporting .NETStandard1.3. I am unable to reference it in the library. The document gives me an impression that it is a part of .Net Standard Library. Could you anyone offer a tip on how to determine if a class is supported by .Net Standard Library?


回答1:


Your one-stop shop for all .NET-based APIs .NET API Browser

  • select .Net Standard
  • select version
  • Enter your search: DataContractSerializer

You find DataContractSerializer in .Net Standard 2.0 only




回答2:


The first version supporting that is .NET Standard 2.0.

You can search at apisof to find out what frameworks contain an API.




回答3:


You are looking at the .NET Core docs.

In the .NET Support chart:

you can see that NetStandard1.3 does not support .NET Core. You'd have to move up to 2.0



来源:https://stackoverflow.com/questions/41683909/how-to-tell-if-a-class-is-supported-by-net-standard-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!