R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the purpose of `nameof()` operator in C#?

  • (A) Returns method name
  • (B) Returns string name of a variable or member
  • (C) Returns namespace name
  • (D) Returns full class path

Explanation by: Ram Sharma
`nameof()` returns the string name of a variable, type, or member.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.