I have a variable
public string MyVariable;
I need to use the variable name as a string. Example:
var a = MyVariable.NameVariable();
How can i do this?
I would like to create your miniORM (NHibernate is too heavy and requires a separate library). At the moment, the problem is that I have to specify a bunch of constants. For instance:
public const string FieldIdRules = "idRules"
And then make deals in relation to a self-written profiler. I saw that Hibernate does not need to specify a text value (for field relations). I want to implement the same thing.
Sorry my bad english
source share