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 added a blank solution and added a .NET Standard 2.0 class library to the solution. In these steps, we have given proper names to the solution and the project. Then, in step 12 we changed the name of the default Class1.cs generated from Visual Studio. In step 15, we added the required using directive to the code. We have mainly used System.Net and System.Net.Sockets to access the required classes and read the IP address, and then added the System.Collecitons.Generic namespace to create a generic string List to hold the IP addresses.

In step 16, we added a public method that will read all the available IP addresses of the local machine you are on. In the first line, we stored the host name of the system ...

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