示例#1
0
        private static PolyStringType createPolyStringType(string orig)
        {
            PolyStringType retval = new PolyStringType();

            retval.orig = orig;
            return(retval);
        }
示例#2
0
 private static string getOrig(PolyStringType polystring)
 {
     if (polystring == null)
     {
         return(null);
     }
     else if (polystring.orig != null)
     {
         return(polystring.orig);
     }
     else if (polystring.Any != null)
     {
         StringBuilder sb = new StringBuilder();
         foreach (XmlNode any in polystring.Any)
         {
             if (any.InnerText != null)
             {
                 sb.Append(any.InnerText.Trim());
             }
         }
         return(sb.ToString());
     }
     else
     {
         return(null);
     }
 }
示例#3
0
        private static PolyStringType createPolyStringType(string orig)
        {
 	        PolyStringType retval = new PolyStringType();
            retval.orig = orig;
            return retval;
        }
示例#4
0
 private static string getOrig(PolyStringType polystring)
 {
     if (polystring == null)
     {
         return null;
     }
     else if (polystring.orig != null)
     {
         return polystring.orig;
     }
     else if (polystring.Any != null)
     {
         StringBuilder sb = new StringBuilder();
         foreach (XmlNode any in polystring.Any)
         {
             if (any.InnerText != null)
             {
                 sb.Append(any.InnerText.Trim());
             }
         }
         return sb.ToString();
     }
     else
     {
         return null;
     }
 }