MerlinVR / UdonSharp

An experimental compiler for compiling C# to Udon assembly
MIT License
678 stars 89 forks source link

Add support for `nameof` #34

Closed orels1 closed 4 years ago

orels1 commented 4 years ago

Feature Description: It would be nice to be able to use nameof in U# for better IDE refactoring support. An example of a usage would be as follows

MyUdonSharpBehaviour.SendCustonNetworkEvent(nameof(MyUdonSharpBehaviour.Bonk))

Additional context: Since we can't call the networked methods directly - this will be a way to at least leverage the IDE for static analysis.

MerlinVR commented 4 years ago

I'll look at adding this, it's just a bit weird with how it's handled in some cases.

MerlinVR commented 4 years ago

Added in 0.17.0