static private ToXmlDataType ( InternalPrimitiveTypeE code ) : String | ||
code | InternalPrimitiveTypeE | |
Résultat | String |
internal void WriteTopPrimitive(NameInfo nameInfo, object value) { this.attrList.Clear(); this.Write(InternalElementTypeE.ObjectBegin, "SOAP-ENV:Body", this.attrList, null, false, false); if (nameInfo.NIobjectId > 0L) { this.attrList.Put("id", this.IdToString((int)nameInfo.NIobjectId)); } string str = null; if (value is string) { str = (string)value; } else { str = Converter.SoapToString(value, nameInfo.NIprimitiveTypeEnum); } this.Write(InternalElementTypeE.Member, "xsd:" + Converter.ToXmlDataType(nameInfo.NIprimitiveTypeEnum), this.attrList, str, true, false); }