public object ConvertObjectFrom(string stringvalue)
        {
            if (string.IsNullOrEmpty(stringvalue))
            {
                return(null);
            }

            return(underlyingStringParser.ConvertObjectFrom(stringvalue));
        }
Beispiel #2
0
        public static IEnumerable ConvertElementsFrom(string stringvalue, IStringParser elementParser)
        {
            var sval = stringvalue == null ? string.Empty : stringvalue.Trim();

            if (!string.IsNullOrEmpty(sval))
            {
                foreach (var value in sval.Split(Discs))
                {
                    yield return(elementParser.ConvertObjectFrom(value));
                }
            }
        }
Beispiel #3
0
 public T ConvertFrom(string stringvalue)
 {
     return((T)isp.ConvertObjectFrom(stringvalue));
 }
Beispiel #4
0
 public object ConvertFromString(string text, IReaderRow row, MemberMapData memberMapData)
 {
     return(parser.ConvertObjectFrom(text));
 }