Class ThrowExtensions
Provides a set of extension methods for ThrowExtensionRoot objects.
Предоставляет набор методов расширения для объектов ThrowExtensionRoot.
Inherited Members
Namespace: Platform.Exceptions
Assembly: Platform.Exceptions.dll
Syntax
public static class ThrowExtensions
Methods
| Improve this Doc View SourceNotImplementedException(ThrowExtensionRoot)
Throws a new NotImplementedException.
Выбрасывает новое NotImplementedException.
Declaration
public static void NotImplementedException(this ThrowExtensionRoot root)
Parameters
| Type | Name | Description |
|---|---|---|
| ThrowExtensionRoot | root | The extension root to which this method is bound. Корень-расширения, к которому привязан этот метод. |
NotImplementedExceptionAndReturn<TReturn>(ThrowExtensionRoot)
Throws a new NotImplementedException, while returning a value of TReturn type.
Выбрасывает новое NotImplementedException, вовращая при этом значение типа TReturn.
Declaration
public static TReturn NotImplementedExceptionAndReturn<TReturn>(this ThrowExtensionRoot root)
Parameters
| Type | Name | Description |
|---|---|---|
| ThrowExtensionRoot | root | The extension root to which this method is bound. Корень-расширения, к которому привязан этот метод. |
Returns
| Type | Description |
|---|---|
| TReturn | A value of Значение типа |
Type Parameters
| Name | Description |
|---|---|
| TReturn | The type of returned value. Тип возвращаемого значения. |
NotSupportedException(ThrowExtensionRoot)
Throws a new NotSupportedException.
Выбрасывает новое NotSupportedException.
Declaration
public static void NotSupportedException(this ThrowExtensionRoot root)
Parameters
| Type | Name | Description |
|---|---|---|
| ThrowExtensionRoot | root | The extension root to which this method is bound. Корень-расширения, к которому привязан этот метод. |
NotSupportedExceptionAndReturn<TReturn>(ThrowExtensionRoot)
Throws a new NotSupportedException, while returning a value of TReturn type.
Выбрасывает новое NotSupportedException, вовращая при этом значение типа TReturn.
Declaration
public static TReturn NotSupportedExceptionAndReturn<TReturn>(this ThrowExtensionRoot root)
Parameters
| Type | Name | Description |
|---|---|---|
| ThrowExtensionRoot | root | The extension root to which this method is bound. Корень-расширения, к которому привязан этот метод. |
Returns
| Type | Description |
|---|---|
| TReturn | A value of Значение типа |
Type Parameters
| Name | Description |
|---|---|
| TReturn | The type of returned value. Тип возвращаемого значения. |