Skip to content

Instantly share code, notes, and snippets.

@Infinitusvoid
Created September 13, 2021 09:44
Show Gist options
  • Save Infinitusvoid/c5e9329aa594858907120f017abac2a8 to your computer and use it in GitHub Desktop.
Save Infinitusvoid/c5e9329aa594858907120f017abac2a8 to your computer and use it in GitHub Desktop.
C# : How do we get the name of variable ?
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