DoesNotReturnAttribute Class

Indicates that a method never returns to its caller.

[AttributeUsage(AttributeTargets.Method, Inherited = false)]
public sealed class DoesNotReturnAttribute : Attribute

Remarks

This type is available in the netstandard2.0 and .NET Framework builds of Louis alone, because the BCL of every other build has it.

The compiler takes this type for the attribute of the BCL. A project that references Louis can therefore apply it to its own methods.

Every other build of Louis forwards this type to the attribute of the BCL. An application can therefore load a library that uses this type together with any build of Louis.

Inheritance
Attribute DoesNotReturnAttribute

Constructors

NameDescription
DoesNotReturnAttribute()

DoesNotReturnAttribute()

Available in: net48netstandard2.0(not available in the other target frameworks of the package)

public DoesNotReturnAttribute()

No documentation is available.