Type GetType(RubyControlFieldExpression field)
        {
            string typeName = field.FullMemberName;

            if (!String.IsNullOrEmpty(typeName))
            {
                return(componentCreator.GetType(typeName));
            }
            return(null);
        }
        /// <summary>
        /// Gets the type for the control being walked.
        /// </summary>
        Type GetComponentType()
        {
            string baseClass = GetBaseClassName(classDefinition);
            Type   type      = componentCreator.GetType(baseClass);

            if (type != null)
            {
                return(type);
            }

            if (baseClass.Contains("UserControl"))
            {
                return(typeof(UserControl));
            }
            return(typeof(Form));
        }
        Type GetType(PythonControlFieldExpression field)
        {
            string typeName = PythonControlFieldExpression.GetPrefix(field.FullMemberName);

            return(componentCreator.GetType(typeName));
        }