ToXmlDataType() static private method

static private ToXmlDataType ( InternalPrimitiveTypeE code ) : String
code InternalPrimitiveTypeE
return String
コード例 #1
0
        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);
        }