Fix IDE0025 (use expression body for properties)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / NotImplementedException.cs
blob8f443476ff7c3be7516daf426380eed0fc7f2165
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 /*=============================================================================
6 **
7 **
8 **
9 ** Purpose: Exception thrown when a requested method or operation is not
10 ** implemented.
13 =============================================================================*/
15 using System.Runtime.Serialization;
17 namespace System
19 [Serializable]
20 [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
21 public class NotImplementedException : SystemException
23 public NotImplementedException()
24 : base(SR.Arg_NotImplementedException)
26 HResult = HResults.E_NOTIMPL;
28 public NotImplementedException(string? message)
29 : base(message)
31 HResult = HResults.E_NOTIMPL;
33 public NotImplementedException(string? message, Exception? inner)
34 : base(message, inner)
36 HResult = HResults.E_NOTIMPL;
39 protected NotImplementedException(SerializationInfo info, StreamingContext context) : base(info, context)