Skip to content

Commit

Permalink
Add PlatformNotSupportedException exception (#174)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Feb 17, 2022
1 parent 87c04c9 commit b4c28a9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@
<Compile Include="..\nanoFramework.CoreLibrary\System\ObsoleteAttribute.cs" Link="System\ObsoleteAttribute.cs" />
<Compile Include="..\nanoFramework.CoreLibrary\System\OutOfMemoryException.cs" Link="System\OutOfMemoryException.cs" />
<Compile Include="..\nanoFramework.CoreLibrary\System\ParamArrayAttribute.cs" Link="System\ParamArrayAttribute.cs" />
<Compile Include="..\nanoFramework.CoreLibrary\System\PlatformNotSupportedException.cs">
<Link>System\PlatformNotSupportedException.cs</Link>
</Compile>
<Compile Include="..\nanoFramework.CoreLibrary\System\Random.cs" Link="System\Random.cs" />
<Compile Include="..\nanoFramework.CoreLibrary\System\Reflection\Assembly.cs" Link="System\Reflection\Assembly.cs" />
<Compile Include="..\nanoFramework.CoreLibrary\System\Reflection\AssemblyAttributes.cs" Link="System\Reflection\AssemblyAttributes.cs" />
Expand Down
1 change: 1 addition & 0 deletions nanoFramework.CoreLibrary/CoreLibrary.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<Compile Include="System\AppDomainUnloadedException.cs" />
<Compile Include="System\ApplicationException.cs" />
<Compile Include="System\ArgumentException.cs" />
<Compile Include="System\PlatformNotSupportedException.cs" />
<Compile Include="System\ArgumentNullException.cs" />
<Compile Include="System\ArgumentOutOfRangeException.cs" />
<Compile Include="System\Array.cs" />
Expand Down
2 changes: 1 addition & 1 deletion nanoFramework.CoreLibrary/System/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
[assembly: AssemblyProduct(".NET nanoFramework mscorlib")]
[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")]

[assembly: AssemblyNativeVersion("100.5.0.16")]
[assembly: AssemblyNativeVersion("100.5.0.17")]
20 changes: 20 additions & 0 deletions nanoFramework.CoreLibrary/System/PlatformNotSupportedException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
namespace System
{
/// <summary>
/// The exception that is thrown when a feature does not run on a particular platform.
/// </summary>
[Serializable]
public class PlatformNotSupportedException : NotSupportedException
{
/// <summary>
/// Initializes a new instance of the ArgumentNullException class.
/// </summary>
public PlatformNotSupportedException()
{ }
}
}

0 comments on commit b4c28a9

Please sign in to comment.