private EvaluatedExpression GetThisObject() { IMethod method = _stackFrame.GetLocation().GetMethod(); if (method.GetIsStatic()) { throw new InvalidOperationException("The instance field cannot be accessed from a static method."); } return(new EvaluatedExpression("this", "this", _stackFrame.GetLocation().GetDeclaringType(), _stackFrame.GetThisObject(), false)); }