From 54628de2db0ccfaff71b5c5237cb8028c6028089 Mon Sep 17 00:00:00 2001 From: IG Date: Mon, 8 Jan 2024 23:22:49 +0000 Subject: [PATCH] upgrade netbox (#451) --- docs/release-history.md | 2 +- src/NetBox.cs | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/release-history.md b/docs/release-history.md index 5cbd4c9e..12b2dcd2 100644 --- a/docs/release-history.md +++ b/docs/release-history.md @@ -6,7 +6,7 @@ ### Fixes -- +- `NetBox` was exposing some internal types (#451) ## 4.20.0 diff --git a/src/NetBox.cs b/src/NetBox.cs index d53a7d8d..eb83eaa4 100644 --- a/src/NetBox.cs +++ b/src/NetBox.cs @@ -3,7 +3,7 @@ _ _ _ ____ | \ | | ___| |_| __ ) _____ __ | \| |/ _ \ __| _ \ / _ \ \/ / | |\ | __/ |_| |_) | (_) > < -|_| \_|\___|\__|____/ \___/_/\_\ v4.2.2 by @aloneguid +|_| \_|\___|\__|____/ \___/_/\_\ v4.3.0 by @aloneguid https://github.com/aloneguid/netbox */ @@ -720,7 +720,7 @@ namespace NetBox.Generator { /// /// Generates random data using for increased security /// - public static class RandomGenerator { + static class RandomGenerator { private static readonly RandomNumberGenerator Rnd = RandomNumberGenerator.Create(); //get a cryptographically strong double between 0 and 1 @@ -1833,17 +1833,14 @@ public static IEnumerable ForEach(this IEnumerable source, Action ac // FILE: src/NetBox/System/StreamExtensions.cs namespace System { - using System.Threading.Tasks; - using System.Threading; using global::System.Collections.Generic; using global::System.IO; using global::System.Text; - using System.Diagnostics; /// /// extension /// - public static class StreamExtensions { + static class StreamExtensions { #region [ General ] ///