Skip to content

Commit f22a704

Browse files
authored
Replace deprecated type exclusion in project with attribute (#394)
***NO_CI***
1 parent 6ab4c3f commit f22a704

15 files changed

Lines changed: 38 additions & 46 deletions

‎nanoFramework.System.Net/NetworkHelper/IPConfiguration.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using System.Runtime.CompilerServices;
5+
46
namespace nanoFramework.Networking
57
{
68
/// <summary>
79
/// IP configuration to be used for static IP address configuration.
810
/// </summary>
11+
[ExcludeType]
912
public class IPConfiguration
1013
{
1114
/// <summary>

‎nanoFramework.System.Net/NetworkInformation/NetworkInformationOptions.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
// See LICENSE file in the project root for full license information.
55
//
66

7+
using System.Runtime.CompilerServices;
8+
79
namespace System.Net.NetworkInformation
810
{
911
/// <summary>
1012
/// Options for <see cref="NetworkInformation"/>.
1113
/// </summary>
14+
[ExcludeType]
1215
internal enum NetworkInformationOptions
1316
{
1417
/// <summary>

‎nanoFramework.System.Net/NetworkInformation/WirelessAPStation.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
//
66

77
using System;
8+
using System.Runtime.CompilerServices;
89

910
namespace System.Net.NetworkInformation
1011
{
1112
/// <summary>
1213
/// Enum of Phy protocols used for connection.
1314
/// </summary>
15+
[ExcludeType]
1416
[Flags]
1517
public enum PhyProtocols
1618
{

‎nanoFramework.System.Net/Properties/AssemblyInfo.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
////////////////////////////////////////////////////////////////
1818
// update this whenever the native assembly signature changes //
19-
[assembly: AssemblyNativeVersion("100.20.0.1")]
19+
[assembly: AssemblyNativeVersion("100.20.0.2")]
2020
////////////////////////////////////////////////////////////////
2121

2222
// Setting ComVisible to false makes the types in this assembly not visible

‎nanoFramework.System.Net/Security/NetworkSecurity.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public enum SslProtocols
6060
/// <summary>
6161
/// The verification scheme to use for authentication.
6262
/// </summary>
63+
[ExcludeType]
6364
public enum SslVerification
6465
{
6566
/// <summary>

‎nanoFramework.System.Net/Sockets/AddressFamily.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// See LICENSE file in the project root for full license information.
55
//
66

7+
using System.Runtime.CompilerServices;
8+
79
namespace System.Net.Sockets
810
{
911
/// <summary>
@@ -13,6 +15,7 @@ namespace System.Net.Sockets
1315
/// An AddressFamily member specifies the addressing scheme that a <see cref="Socket"/> will use to resolve an address. For example,
1416
/// InterNetwork indicates that an IP version 4 address is expected when a <see cref="Socket"/> connects to an endpoint.
1517
/// </remarks>
18+
[ExcludeType]
1619
public enum AddressFamily
1720
{
1821
/// <summary>

‎nanoFramework.System.Net/Sockets/ProtocolFamily.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
// See LICENSE file in the project root for full license information.
55
//
66

7+
using System.Runtime.CompilerServices;
8+
79
namespace System.Net.Sockets
810
{
911
/// <summary>
1012
/// Specifies the type of protocol that an instance of the <see cref='Socket'/>
1113
/// </summary>
14+
[ExcludeType]
1215
public enum ProtocolFamily
1316
{
1417
/// <summary>

‎nanoFramework.System.Net/Sockets/ProtocolType.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
// See LICENSE file in the project root for full license information.
55
//
66

7+
using System.Runtime.CompilerServices;
8+
79
namespace System.Net.Sockets
810
{
911
/// <summary>
1012
/// Specifies the protocols that the <see cref='Socket'/> class supports.
1113
/// </summary>
14+
[ExcludeType]
1215
public enum ProtocolType
1316
{
1417
/// <summary>

‎nanoFramework.System.Net/Sockets/SelectMode.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
// See LICENSE file in the project root for full license information.
55
//
66

7+
using System.Runtime.CompilerServices;
8+
79
namespace System.Net.Sockets
810
{
911
/// <summary>
1012
/// Specifies the mode for polling the status of a socket.
1113
/// </summary>
14+
[ExcludeType]
1215
public enum SelectMode
1316
{
1417
/// <summary>

‎nanoFramework.System.Net/Sockets/SocketErrors.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
// See LICENSE file in the project root for full license information.
55
//
66

7+
using System.Runtime.CompilerServices;
8+
79
namespace System.Net.Sockets
810
{
911
/// <summary>
1012
/// Defines socket error constants.
1113
/// </summary>
14+
[ExcludeType]
1215
public enum SocketError : int
1316
{
1417
/// <summary>

0 commit comments

Comments
 (0)