Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Conceptual documentation

Commented examples

API documentation

Aspect API

Extensions API

Patterns API

Metalama.​Patterns.​Caching

Metalama.​Patterns.​Caching.​Aspects

Metalama.​Patterns.​Caching.​Aspects.​Configuration

Metalama.​Patterns.​Caching.​Aspects.​Helpers

Metalama.​Patterns.​Caching.​Backends

Metalama.​Patterns.​Caching.​Backends.​Azure

Metalama.​Patterns.​Caching.​Backends.​Redis

Metalama.​Patterns.​Caching.​Building

Metalama.​Patterns.​Caching.​Dependencies

Metalama.​Patterns.​Caching.​Formatters

Metalama.​Patterns.​Caching.​Implementation

Metalama.​Patterns.​Caching.​Locking

Metalama.​Patterns.​Caching.​Serializers

Metalama.​Patterns.​Caching.​Value­Adapters

Metalama.​Patterns.​Contracts

Metalama.​Patterns.​Contracts.​Numeric

Metalama.​Patterns.​Immutability

Metalama.​Patterns.​Immutability.​Configuration

Metalama.​Patterns.​Memoization

Metalama.​Patterns.​Observability

Metalama.​Patterns.​Observability.​Configuration

Metalama.​Patterns.​Observability.​Implementation

Metalama.​Patterns.​Wpf

Metalama.​Patterns.​Wpf.​Configuration

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

  • Article

Method VerifyNotNullableDeclarations

VerifyNotNullableDeclarations(IQuery<ICompilation>, bool)

Add the NotNullAttribute aspect to all public, reference typed, non-nullable fields, properties and parameters in the compilation. The includeInternalApis parameter allows to enlarge the set to internal and private APIs.

Declaration
public static void VerifyNotNullableDeclarations(this IQuery<ICompilation> compilation, bool includeInternalApis = false)
Parameters
Type Name Description
IQuery<ICompilation> compilation

The compilation.

bool includeInternalApis

Determines whether the non-public fields, properties and parameters should be included.

See Also

VerifyNotNullableDeclarations(IQuery<INamespace>, bool)

Add the NotNullAttribute aspect to all public, reference typed, non-nullable fields, properties and parameters in the given namespaces. The includeInternalApis parameter allows to enlarge the set to internal and private APIs.

Declaration
public static void VerifyNotNullableDeclarations(this IQuery<INamespace> ns, bool includeInternalApis = false)
Parameters
Type Name Description
IQuery<INamespace> ns

A collection of namespaces.

bool includeInternalApis

Determines whether the non-public fields, properties and parameters should be included.

See Also

VerifyNotNullableDeclarations(IQuery<INamedType>, bool)

Add the NotNullAttribute aspect to all public, reference typed, non-nullable fields, properties and parameters in the given types. The includeInternalApis parameter allows to enlarge the set to internal and private APIs.

Declaration
public static void VerifyNotNullableDeclarations(this IQuery<INamedType> types, bool includeInternalApis = false)
Parameters
Type Name Description
IQuery<INamedType> types

A collection of types.

bool includeInternalApis

Determines whether the non-public fields, properties and parameters should be included.

See Also