Partager via


Assumes.NotReachable Method

Definition

Overloads

NotReachable()

Unconditionally throws an Microsoft.Assumes.InternalErrorException.

NotReachable<T>()

Unconditionally throws an Microsoft.Assumes.InternalErrorException.

NotReachable()

Unconditionally throws an Microsoft.Assumes.InternalErrorException.

public:
 static Exception ^ NotReachable();
[System.Diagnostics.DebuggerStepThrough]
public static Exception NotReachable ();
[<System.Diagnostics.DebuggerStepThrough>]
static member NotReachable : unit -> Exception
Public Shared Function NotReachable () As Exception

Returns

Nothing. This method always throws.

Attributes

Applies to

NotReachable<T>()

Unconditionally throws an Microsoft.Assumes.InternalErrorException.

public:
generic <typename T>
 static T NotReachable();
[System.Diagnostics.DebuggerStepThrough]
public static T NotReachable<T> ();
[<System.Diagnostics.DebuggerStepThrough>]
static member NotReachable : unit -> 'T
Public Shared Function NotReachable(Of T) () As T

Type Parameters

T

The type that the method should be typed to return (although it never returns anything).

Returns

T

Nothing. This method always throws.

Attributes

Applies to