Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 0 additions & 10 deletions src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

# SA1208: System using directives should be placed before other using directives
dotnet_diagnostic.SA1208.severity = error

Expand Down Expand Up @@ -253,8 +248,3 @@ dotnet_naming_style.casse_pascal.required_prefix =
dotnet_naming_style.casse_pascal.required_suffix =
dotnet_naming_style.casse_pascal.word_separator =
dotnet_naming_style.casse_pascal.capitalization = pascal_case

dotnet_naming_style.casse_pascal.required_prefix =
dotnet_naming_style.casse_pascal.required_suffix =
dotnet_naming_style.casse_pascal.word_separator =
dotnet_naming_style.casse_pascal.capitalization = pascal_case
18 changes: 4 additions & 14 deletions src/ConsoleApplication/ConsoleApplication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,21 @@
<Version>3.1.0</Version>
<RootNamespace>System.Net</RootNamespace>
<LangVersion>latestmajor</LangVersion>

<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<NoWarn />
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<NoWarn />
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
<None Remove="stylecop.json" />
</ItemGroup>

<ItemGroup>
<AdditionalFiles Include="stylecop.json" />
</ItemGroup>


<ItemGroup>
<PackageReference Include="GnuGetOpt" Version="0.9.2.6" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions src/ConsoleApplication/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace System.Net;

using Collections.Generic;
using Diagnostics;
using IO;
using Numerics;
using Reflection;
using Gnu.Getopt;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Numerics;
using System.Reflection;

/// <summary>
/// Console app for IPNetwork.
Expand Down
11 changes: 0 additions & 11 deletions src/ConsoleApplication/stylecop.json

This file was deleted.

4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/BigIntegerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace System.Net;

using System;
using Numerics;
using Text;
using System.Numerics;
using System.Text;

/// <summary>
/// Extension methods to convert <see cref="System.Numerics.BigInteger"/>
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/CidrClassFull.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Sockets;
using System.Net.Sockets;

/// <summary>
/// Class <c>CidrClassFull</c> tries to guess CIDR in a ClassFull way.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/CidrClassLess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Sockets;
using System.Net.Sockets;

/// <summary>
/// Try to guess a CIDR in a ClassLess way ie. ipv4 = 32, ipv6 = 128.
Expand Down
18 changes: 3 additions & 15 deletions src/System.Net.IPNetwork/IPAddressCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace System.Net;

using Collections;
using Collections.Generic;
using Numerics;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;

/// <summary>
/// Represents different filters for a collection of items.
Expand Down Expand Up @@ -45,8 +45,6 @@ internal IPAddressCollection(IPNetwork2 ipnetwork, FilterEnum filter)
this.Reset();
}

#region Count, Array, Enumerator

/// <summary>
/// Gets the count of IP addresses within the network.
/// </summary>
Expand Down Expand Up @@ -100,10 +98,6 @@ public IPAddress this[BigInteger i]
}
}

#endregion

#region Legacy Enumeration

/// <summary>
/// Gets the current <see cref="IPAddress"/> from the collection.
/// </summary>
Expand Down Expand Up @@ -149,10 +143,6 @@ public void Dispose()
// nothing to dispose
}

#endregion

#region Enumeration

/// <inheritdoc/>
IEnumerator<IPAddress> IEnumerable<IPAddress>.GetEnumerator()
{
Expand Down Expand Up @@ -213,6 +203,4 @@ public Enumerator(IPAddressCollection collection)
this.enumerator = -1;
}
}

#endregion
}
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/IPNetwork2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Runtime.Serialization;
using System.Runtime.Serialization;

/// <summary>
/// IP Network utility class.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2BitsSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// BitSet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// Contains.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2Ctor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// The constructors of IPNetwork2.
Expand Down
4 changes: 1 addition & 3 deletions src/System.Net.IPNetwork/IPNetwork2ISerializable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace System.Net;

using Sockets;
using Numerics;
using Runtime.Serialization;
using System.Runtime.Serialization;

/// <summary>
/// ISerializable.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/IPNetwork2InternalParse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Text.RegularExpressions;
using System.Text.RegularExpressions;

/// <summary>
/// The InternalParse methodes.
Expand Down
6 changes: 3 additions & 3 deletions src/System.Net.IPNetwork/IPNetwork2Members.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace System.Net;

using Sockets;
using Numerics;
using Runtime.Serialization;
using System.Numerics;
using System.Net.Sockets;
using System.Runtime.Serialization;

/// <summary>
/// Properties and members of IPNetwork2.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/IPNetwork2Print.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using IO;
using System.IO;

/// <summary>
/// Print.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/IPNetwork2Supernet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Numerics;
using System.Numerics;

/// <summary>
/// supernet.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/IPNetwork2SupernetArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Collections.Generic;
using System.Collections.Generic;

/// <summary>
/// SupernetArray.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2ToCidr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// ToCidr.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2ToIPAddress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// ToIPAddress.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2ToNetmask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// ToNetmask.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2ToUint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// ToUint.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/IPNetwork2TryGuessCidr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Sockets;
using System.Net.Sockets;

/// <summary>
/// TryGuessCidr.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2ValidNetmask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// ValidNetmask.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2WideSubnet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Sockets;
using Numerics;
using System.Net.Sockets;
using System.Numerics;

/// <summary>
/// WideSubnet.
Expand Down
4 changes: 2 additions & 2 deletions src/System.Net.IPNetwork/IPNetwork2WildcardMask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace System.Net;

using Numerics;
using Sockets;
using System.Numerics;
using System.Net.Sockets;

/// <summary>
/// WildcardNetmask.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/IPNetwork2XmlSerialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Sockets;
using System.Net.Sockets;

/// <summary>
/// Serialization.
Expand Down
2 changes: 1 addition & 1 deletion src/System.Net.IPNetwork/IPNetwork2overlap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace System.Net;

using Numerics;
using System.Numerics;

/// <summary>
/// Overlap.
Expand Down
Loading
Loading