Make TypeNameParser consistently use tabs
[mono-project.git] / netcore / System.Private.CoreLib / src / System / NotImplemented.cs
blob82f4e18ddc0ef77791f5f0939fb2acef2435a5b8
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 namespace System
7 //
8 // This simple class enables one to throw a NotImplementedException using the following
9 // idiom:
11 // throw NotImplemented.ByDesign;
13 // Used by methods whose intended implementation is to throw a NotImplementedException (typically
14 // virtual methods in public abstract classes that intended to be subclassed by third parties.)
16 // This makes it distinguishable both from human eyes and CCI from NYI's that truly represent undone work.
18 internal static class NotImplemented
20 internal static Exception ByDesign
22 get
24 return new NotImplementedException();
28 internal static Exception ByDesignWithMessage(string message)
30 return new NotImplementedException(message);