Пример #1
0
 /// <summary>
 /// Retrieves the name of this property / field as well as its owning object.
 /// Note: This is quite an expensive call so use sparingly.
 /// </summary>
 /// <param name="varExpr">A lambda expression capturing a reference to a field or property</param>
 /// <returns></returns>
 public static VariableReference GetReference <T>(Expression <Func <T> > varExpr)
 {
     // Slow, probs
     return(VariableReference.Construct(varExpr));
 }