Tells the static analyser that the given reference is trusted to be non-null.
Namespace:
PostSharp
Assembly:
PostSharp.Core (in PostSharp.Core.dll)
Syntax
| Visual Basic (Declaration) |
|---|
<ConditionalAttribute("ASSERT")> _
Public Shared Sub AssumeNotNull ( _
value As Object _
) |
| C# |
|---|
[ConditionalAttribute("ASSERT")]
public static void AssumeNotNull(
Object value
) |
| Visual C++ |
|---|
[ConditionalAttribute(L"ASSERT")]
public:
static void AssumeNotNull(
Object^ value
) |
Parameters
- value
- Type: System..::.Object
An object reference.
See Also