07-22-2023, 10:49 PM
Let me use the following example to explain my question:
```lang-csharp
public string ExampleFunction(string Variable) {
return something;
}
string WhatIsMyName = "Hello World";
string Hello = ExampleFunction(WhatIsMyName);
```
When I pass the variable `WhatIsMyName` to the `ExampleFunction`, I want to be able to get a string of the *original* variable's name. Perhaps something like:
```lang-csharp
Variable.OriginalName.ToString() // == "WhatIsMyName"
```
Is there any way to do this?
```lang-csharp
public string ExampleFunction(string Variable) {
return something;
}
string WhatIsMyName = "Hello World";
string Hello = ExampleFunction(WhatIsMyName);
```
When I pass the variable `WhatIsMyName` to the `ExampleFunction`, I want to be able to get a string of the *original* variable's name. Perhaps something like:
```lang-csharp
Variable.OriginalName.ToString() // == "WhatIsMyName"
```
Is there any way to do this?