GlueViewOfficialPlugins.Scripting.ExpressionParser.GetObjectFromContainerAndMemberName C# (CSharp) Method

GetObjectFromContainerAndMemberName() private static method

private static GetObjectFromContainerAndMemberName ( object container, string memberName, CodeContext codeContext, ExpressionParseType parseType ) : object
container object
memberName string
codeContext GlueView.Scripting.CodeContext
parseType ExpressionParseType
return object
        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;
        }