Skip to content

Use nameof() in BoundParameters.ContainsKey()  #6548

Closed

Description

@iSazonov

We should replace code like BoundParameters.ContainsKey("Delimiter") with BoundParameters.ContainsKey(nameof(Delimiter)).

Old pattern come from old C# (<6.0) without nameof().

Activity

  1. added
    Issue-Code Cleanup
    on Apr 3, 2018
  2. iSazonov commented on Oct 2, 2018

    @iSazonov
    CollaboratorAuthor

    Steve Lee (@SteveL-MSFT)
    There are still some examples of the old code. They can be found by BoundParameters.ContainsKey(". It is related to parameters like "WhatIf", "TotalCount" and so on. I don’t know how to fix them correctly and forced to leave it to your team, sorry.

  3. SteveL-MSFT commented on Oct 3, 2018

    @SteveL-MSFT
    Member

    Ilya (@iSazonov) no worries, I appreciate the work you've already done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Code Cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions