private static object GetObjectFromContainerAndMemberName(object container, string memberName, CodeContext codeContext, ExpressionParseType parseType)
{
object foundValue = null;
bool wasFound = false;
if (parseType == ExpressionParseType.Evaluate)
{
if (container is IAssignableReference)
{
container = ((IAssignableReference)container).CurrentValue;
}
GetObjectFromContainerAndNameEvaluate(container, memberName, codeContext, ref foundValue, ref wasFound);
}
else
{
GetObjectFromContainerAndNameReference(container, memberName, codeContext, ref foundValue, ref wasFound);
}
return foundValue;
}