Implicitly Typed Const
Warns about constants that don't have an explicitly defined type.
Reasoning
All constants have a declared type, whether a type is specified or not. The implicit type is determined by the compiler based on the value, which is not always the expected type.
Default severity
Warning
Inspection type
CodeQualityIssues
Examples
This example should trigger a result
This example should NOT trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.ImplicitlyTypedConstInspection.cs (Prerelease-v2.5.9.6289)