Query module NonAssignedFields

name
Field is never assigned a non-default value
description
Fields are automatically initialised with the default values for their type, which may not be the intent: prefer explicit initialisation.
kind
problem
problem.severity
recommendation
precision
low
id
cs/unassigned-field
tags
reliability maintainability useless-code external/cwe/cwe-457

Imports

InteropServices

Provides definitions related to the namespace System.Runtime.InteropServices.

System

Provides definitions related to the namespace System.

csharp

The default C# QL library.

Predicates