question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove "this" in result of nameof.full

See original GitHub issue

It’s far easier to be able to do the following when using nameof in the same class. It’s also impossible to reference private properties when referring interfaces

class Test{
  private x:Test;
  public y: Test;
  public z: string;

nameof(this.x) // "x"
nameof(this.x.y) // "y"
nameof.full(this.x.y.z) "x.y.z"
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dsherretcommented, Feb 26, 2017

@Kukks this is in version 0.8. Let me know if you have any issues.

0reactions
dsherretcommented, Feb 24, 2017

@Kukks cool. Thanks for spurring this idea and for your feedback! I like this addition and it being backwards compatible is a plus.

I’ll implement this over the weekend. I’m closing this in favour of #12.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does nameof return only last name? - Stack Overflow
Note that if you need/want the "full" name, you could do this: $"{nameof(order)}.{nameof(User)}.{nameof(Age)}".GetLastName();. as long as all of these names ...
Read more >
Remove and RemoveIf functions in Power Apps
Use the RemoveIf function to remove a record or records based on a condition or a set ... The result may not represent...
Read more >
C# Nameof Operator Explained - Pluralsight
The nameof operator takes a code element then it returns a string literal with the same name. ... This gives us the following...
Read more >
Remove Hidden Data in Microsoft Excel - Marquette University
Click Inspect to identify hidden content, and then click Remove All to remove the item of your choice. Review the document inspection results....
Read more >
MRSA - NHS
The full name of MRSA is methicillin-resistant Staphylococcus aureus. ... it's unlikely you'll be contacted about the result and you should follow the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found