I have variable
public string MyVariable;
I need use name of variable as string. Example:
var a = MyVariable.NameVariable();
// a = "MyVariable"
How i may to 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 point out a bunch of constants. For example:
public const string FieldIdRules = "idRules"
And then to make transactions in relation samonapisannom profiler. I saw that Hibernate does not need to specify the text value (for the ratio of fields). I want to implement the same.
Sorry my bad english