Skip to content

CC0013 (user ternary) rule should be more careful with nullable types. (VB) #468

@gigazet

Description

@gigazet

for example, this:
If value Is DBNull.Value Then
Return Nothing
Else
Return CDate(value)
End If
not equals to:
Return If(value Is DBNull.Value, Nothing, CDate(value))

first will return Nothing, but second will return DateTime.MinValue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions