Skip to Content
.NET Standard 2.0 Cookbook
book

.NET Standard 2.0 Cookbook

by Fiqri Ismail
May 2018
Intermediate to advanced content levelIntermediate to advanced
394 pages
9h 51m
English
Packt Publishing
Content preview from .NET Standard 2.0 Cookbook

How it works...

In steps 1 to 11, we created an empty solution. Then we added a .NET Standard 2.0 library to that solution. Again, as a good practice we properly named the solution and the class library project. In steps 12 and 13, we changed the name of the default Class1.cs created by Visual Studio. In step 15, we added using directives required for our task. In step 16, we created a class-wide private variable to hold the service URL. Then, in step 16 we created the default constructor with a string parameter that updates the private variable in step 15.

In step 18, we created the public method that did the actual work of reading the RESTful API. In the first line of code, we created a string variable that held the output from the service. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# 7 and .NET Core 2.0 High Performance

C# 7 and .NET Core 2.0 High Performance

Ovais Mehboob Ahmed Khan
.NET Core 2.0 By Example

.NET Core 2.0 By Example

Neha Shrivastava, Rishabh Verma

Publisher Resources

ISBN: 9781788834667Supplemental Content