diff options
author | Yi Zhang <yzha@microsoft.com> | 2017-06-24 00:52:53 +0300 |
---|---|---|
committer | Yi Zhang <yzha@microsoft.com> | 2017-06-24 00:52:53 +0300 |
commit | 162e8684f461504813813cada87fadb630e22c94 (patch) | |
tree | d6522e0f32ff2f738341e7421e32c7beb8cab614 /src/System.Private.Interop | |
parent | c176c269a367525ce2a737fc977e90531fe4d4b0 (diff) |
Change NotImplementedException to NotSupportedException/NotImplemented.ByDesign according to guidelines.
[tfs-changeset: 1662850]
Diffstat (limited to 'src/System.Private.Interop')
-rw-r--r-- | src/System.Private.Interop/src/System.Private.Interop.csproj | 3 | ||||
-rw-r--r-- | src/System.Private.Interop/src/WinRT/ExceptionHelpers.cs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/System.Private.Interop/src/System.Private.Interop.csproj b/src/System.Private.Interop/src/System.Private.Interop.csproj index ec92627fa..cb63efb54 100644 --- a/src/System.Private.Interop/src/System.Private.Interop.csproj +++ b/src/System.Private.Interop/src/System.Private.Interop.csproj @@ -226,6 +226,9 @@ </ItemGroup> <ItemGroup Condition="'$(EnableWinRT)'=='true'"> <Compile Include="InteropCallbacks.cs" /> + <Compile Include="..\..\Common\src\System\NotImplemented.cs"> + <Link>System\NotImplemented.cs</Link> + </Compile> <Compile Include="WinRT\ExceptionHelpers.cs" /> <Compile Include="System\Runtime\InteropServices\WindowsRuntime\IActivationFactory.cs" /> <Compile Include="System\Runtime\InteropServices\WindowsRuntime\CustomPropertyImpl.cs" /> diff --git a/src/System.Private.Interop/src/WinRT/ExceptionHelpers.cs b/src/System.Private.Interop/src/WinRT/ExceptionHelpers.cs index 5970d99ec..511f489a2 100644 --- a/src/System.Private.Interop/src/WinRT/ExceptionHelpers.cs +++ b/src/System.Private.Interop/src/WinRT/ExceptionHelpers.cs @@ -564,7 +564,7 @@ namespace System.Runtime.InteropServices exception = new System.Security.VerificationException(); break; case __HResults.E_NOTIMPL: - exception = new NotImplementedException(); + exception = NotImplemented.ByDesign; break; case __HResults.E_OUTOFMEMORY: case __HResults.CTL_E_OUTOFMEMORY: |