aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Networking/IPNetwork/IPNetworkCollection.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/Networking/IPNetwork/IPNetworkCollection.cs')
-rw-r--r--Emby.Server.Implementations/Networking/IPNetwork/IPNetworkCollection.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Networking/IPNetwork/IPNetworkCollection.cs b/Emby.Server.Implementations/Networking/IPNetwork/IPNetworkCollection.cs
index 48d404124..7d3106624 100644
--- a/Emby.Server.Implementations/Networking/IPNetwork/IPNetworkCollection.cs
+++ b/Emby.Server.Implementations/Networking/IPNetwork/IPNetworkCollection.cs
@@ -1,4 +1,4 @@
-using System.Collections;
+using System.Collections;
using System.Collections.Generic;
using System.Numerics;
@@ -47,7 +47,7 @@ namespace System.Net
{
get
{
- BigInteger count = BigInteger.Pow(2, this._cidrSubnet - this._cidr);
+ var count = BigInteger.Pow(2, this._cidrSubnet - this._cidr);
return count;
}
}
@@ -61,11 +61,11 @@ namespace System.Net
throw new ArgumentOutOfRangeException(nameof(i));
}
- BigInteger last = this._ipnetwork.AddressFamily == Sockets.AddressFamily.InterNetworkV6
+ var last = this._ipnetwork.AddressFamily == Sockets.AddressFamily.InterNetworkV6
? this._lastUsable : this._broadcast;
- BigInteger increment = (last - this._network) / this.Count;
- BigInteger uintNetwork = this._network + ((increment + 1) * i);
- IPNetwork ipn = new IPNetwork(uintNetwork, this._ipnetwork.AddressFamily, this._cidrSubnet);
+ var increment = (last - this._network) / this.Count;
+ var uintNetwork = this._network + ((increment + 1) * i);
+ var ipn = new IPNetwork(uintNetwork, this._ipnetwork.AddressFamily, this._cidrSubnet);
return ipn;
}
}
@@ -125,4 +125,4 @@ namespace System.Net
#endregion
}
-} \ No newline at end of file
+}