Wrong unused reference warning

Thread is closed for posting
1 posts, 0 answers
  1. Torsten
    Torsten avatar
    9 posts
    Member since:
    May 2011

    Posted 01 Oct 2011 Link to this post


    using VB.net, when coding this:

                                Dim parameterValue As Object

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

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

    Forget my post. It's ok. I confounded "only assigned to" with "not used". There is no bug.
Back to Top