Created
September 13, 2021 09:44
-
-
Save Infinitusvoid/c5e9329aa594858907120f017abac2a8 to your computer and use it in GitHub Desktop.
C# : How do we get the name of variable ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int jupij = 10; | |
string name = nameof(jupij); | |
Debug.Log("name of variable : " + name); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment