The name doesn't exist in the current context - How to resolve?

前端 未结 1 1561
無奈伤痛
無奈伤痛 2021-01-21 23:36

When I try to access a class that is not in the current namespace while I also added using for that class namespace but still receive an error.

There is an

相关标签:
1条回答
  • 2021-01-22 00:08

    When you receive The name doesn't exist in the current context, you can check for these options:

    • Maybe you haven't defined a variable or member with that name in the scope.
    • Maybe you misspelled an existing variable or member name.
    • Maybe the namespace that defines that class is missing.
    • Maybe your project needs to add a reference to the dll contains that type.

    For more information and example see:

    • The name 'NNNN' does not exist in the current context (C#)
    0 讨论(0)
提交回复
热议问题