Wrong unused reference warning

1 posts, 0 answers
  1. Torsten
    Torsten avatar
    8 posts
    Member since:
    May 2011

    Posted 01 Oct 2011 Link to this post

    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.
Back to Top