Beispiel #1
0
        /// <param name="input">Javascript value</param>
        /// <param name="output">Will have the primitive type of the input when the function returns</param>
        /// <param name="stringHint">Specifies whether the hint is string or number. Default is number.</param>

        //public static void Run(ref mdr.DValue input, out mdr.DValue output, bool stringHint = false)
        //{
        //  mdr.ValueTypes inputType = input.ValueType;
        //  if (mdr.ValueTypesHelper.IsObject(inputType))
        //    Internals.DefaultValue(ref input, out output, stringHint);
        //  else // type is a primitive type
        //    output = input;
        //}
        public static void Run(mdr.DObject input, ref mdr.DValue output, bool stringHint = false)
        {
            Internals.DefaultValue(input, out output, stringHint);
        }