Example #1
0
        /// <summary>The methods returned params.</summary>
        public Type[] GetParameters()
        {
            if (Parameters_ != null)
            {
                return(Parameters_);
            }

            // Param types:
            Parameters_ = new Type[Parameters == null ? 0 : Parameters.Length];

            for (int i = 0; i < Parameters_.Length; i++)
            {
                // Get the param type:
                Parameters_[i] = LanguageTypes.ToType(Parameters[i]);
            }

            return(Parameters_);
        }
Example #2
0
        /// <summary>The methods return type.</summary>
        public Type GetReturnType()
        {
            if (ReturnType_ != null)
            {
                return(ReturnType_);
            }

            if (ReturnValues != null && ReturnValues.Length > 0)
            {
                // Only one in the MVP.
                ReturnType_ = LanguageTypes.ToType(ReturnValues[0]);
            }
            else
            {
                ReturnType_ = typeof(void);
            }

            return(ReturnType_);
        }
Example #3
0
 /// <summary>Reads a value_type converted to a suitable system type.</summary>
 public Type ValueTypeConverted()
 {
     return(LanguageTypes.ToType((LanguageType)ReadByte()));
 }