Skip to content

Added installation instructions and usage examples to README #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,34 @@ A bunch of extension methods that may be useful for someone.
Someday available on NuGet.

[![Build status](https://ci.appveyor.com/api/projects/status/xomp3jvculiodyd3/branch/master?svg=true)](https://ci.appveyor.com/project/JustNrik/netutilities/branch/master)

## Installation

To install the NetUtilities library in your C# project, you can use NuGet Package Manager:

1. Open the NuGet Package Manager in Visual Studio Code
2. Search for "NetUtilities" and click "Install"

Alternatively, you can install via the .NET CLI:

```bash
dotnet add package NetUtilities

### Example for Usage:

Below are some examples of how you can use the utilities in NetUtilities:

#### Validating an IP Address

```csharp
using NetUtilities;

bool isValid = IPAddressValidator.Validate("192.168.1.1");
Console.WriteLine(isValid); // Output: true

#### Checking Network Status

using NetUtilities;

bool isOnline = NetworkUtilities.IsNetworkAvailable();
Console.WriteLine(isOnline); // Output: true if network is available, false otherwise