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...

We have created a blank solution in steps 1 to 5 and assigned it a proper name. In steps 6 to 10, we added a new project to the solution. We selected a .NET Standard 2.0 library template as the starting point of the project and then we gave it a proper name. In steps 11 and 12, we renamed the default Class1.cs to something more meaningful. This class was generated from the template itself. You can rename it or you can delete that file and add a new one.

In step 15, we created a method that returns two string types and an integer type. This was possible because of tuples. In that method, we assigned the variables and returned them in a sequence to match the return type of the method. Finally, we performed a quick build to confirm ...

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