Exemplo n.º 1
0
        /// <summary>
        /// Creates a geoprocessing value object from the given string.
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        public IGPValue CreateValue(string text)
        {
            IGPValue   value   = new GPAutoValue <TValue>();
            IGPMessage message = value.SetAsText(text);

            if (message.IsInformational())
            {
                return(value);
            }

            return(null);
        }
Exemplo n.º 2
0
        public IGPValue CreateValue(string text)
        {
            IGPValue gpValue = new HttpBasicGPValue();

            IGPMessage gpValueMessage = gpValue.SetAsText(text);

            if (gpValueMessage.IsInformational())
            {
                return(gpValue);
            }
            else
            {
                return(null);
            }
        }