protected string ReadString(IQBStringType value)
        {
            string result = string.Empty;

            if (value != null)
            {
                result = value.GetValue();
            }
            return(result);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Returns a valid non-exploding string from an IQBStringType object
 /// </summary>
 /// <param name="obj">The object to be translated</param>
 /// <returns>a translated string</returns>
 public static string Value(IQBStringType obj)
 {
     if (obj == null)
     {
         return(string.Empty);
     }
     else
     {
         return(obj.GetValue());
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Returns a valid non-exploding string from an IQBStringType object
 /// </summary>
 /// <param name="obj">The object to be translated</param>
 /// <returns>a translated string</returns>
 public static string Value( IQBStringType obj )
 {
     if(obj == null)
     {
         return string.Empty;
     }
     else
     {
         return obj.GetValue ();
     }
 }