private static PolyStringType createPolyStringType(string orig) { PolyStringType retval = new PolyStringType(); retval.orig = orig; return(retval); }
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); } }
private static PolyStringType createPolyStringType(string orig) { PolyStringType retval = new PolyStringType(); retval.orig = orig; return retval; }
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; } }