This is a migrated thread and some comments may be shown as answers.

Wrong unused reference warning

0 Answers 43 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Torsten
Top achievements
Rank 1
Torsten asked on 01 Oct 2011, 12:04 PM
Hi,

using VB.net, when coding this:

                            Dim parameterValue As Object

                            If Not dictionary.ContainsKey(queryPart.Replace("@", "")) Then
                                ...
                            Else
                                parameterValue = dictionary.Item(queryPart)
                            End If

JustCode tells me that "the variable 'parameterValue' is only assigned to", which is not correct.

Regards,
Torsten
=========================
Forget my post. It's ok. I confounded "only assigned to" with "not used". There is no bug.
Tags
Code Analysis
Asked by
Torsten
Top achievements
Rank 1
Share this question
or