Skip to content

Commit b4c28a9

Browse files
authored
Add PlatformNotSupportedException exception (#174)
***NO_CI***
1 parent 87c04c9 commit b4c28a9

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

nanoFramework.CoreLibrary.NoReflection/CoreLibrary.NoReflection.nfproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@
137137
<Compile Include="..\nanoFramework.CoreLibrary\System\ObsoleteAttribute.cs" Link="System\ObsoleteAttribute.cs" />
138138
<Compile Include="..\nanoFramework.CoreLibrary\System\OutOfMemoryException.cs" Link="System\OutOfMemoryException.cs" />
139139
<Compile Include="..\nanoFramework.CoreLibrary\System\ParamArrayAttribute.cs" Link="System\ParamArrayAttribute.cs" />
140+
<Compile Include="..\nanoFramework.CoreLibrary\System\PlatformNotSupportedException.cs">
141+
<Link>System\PlatformNotSupportedException.cs</Link>
142+
</Compile>
140143
<Compile Include="..\nanoFramework.CoreLibrary\System\Random.cs" Link="System\Random.cs" />
141144
<Compile Include="..\nanoFramework.CoreLibrary\System\Reflection\Assembly.cs" Link="System\Reflection\Assembly.cs" />
142145
<Compile Include="..\nanoFramework.CoreLibrary\System\Reflection\AssemblyAttributes.cs" Link="System\Reflection\AssemblyAttributes.cs" />

nanoFramework.CoreLibrary/CoreLibrary.nfproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
<Compile Include="System\AppDomainUnloadedException.cs" />
6060
<Compile Include="System\ApplicationException.cs" />
6161
<Compile Include="System\ArgumentException.cs" />
62+
<Compile Include="System\PlatformNotSupportedException.cs" />
6263
<Compile Include="System\ArgumentNullException.cs" />
6364
<Compile Include="System\ArgumentOutOfRangeException.cs" />
6465
<Compile Include="System\Array.cs" />

nanoFramework.CoreLibrary/System/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
[assembly: AssemblyProduct(".NET nanoFramework mscorlib")]
1414
[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")]
1515

16-
[assembly: AssemblyNativeVersion("100.5.0.16")]
16+
[assembly: AssemblyNativeVersion("100.5.0.17")]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// Copyright (c) .NET Foundation and Contributors
3+
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
4+
// See LICENSE file in the project root for full license information.
5+
//
6+
namespace System
7+
{
8+
/// <summary>
9+
/// The exception that is thrown when a feature does not run on a particular platform.
10+
/// </summary>
11+
[Serializable]
12+
public class PlatformNotSupportedException : NotSupportedException
13+
{
14+
/// <summary>
15+
/// Initializes a new instance of the ArgumentNullException class.
16+
/// </summary>
17+
public PlatformNotSupportedException()
18+
{ }
19+
}
20+
}

0 commit comments

Comments
 (0)