10 references to UInt16Type
System.Xml (10)
System\Xml\Schema\XmlValueConverter.cs (10)
1144
if (destinationType ==
UInt16Type
) return Int32ToUInt16(this.ToInt32(value));
1150
if (sourceType ==
UInt16Type
) return this.ChangeType((int) (ushort) value, destinationType);
1168
if (sourceType ==
UInt16Type
) return this.ChangeType((int) (ushort) value, destinationType);
1178
if (destinationType ==
UInt16Type
) return Int32ToUInt16(this.ToInt32(value));
2391
if (sourceType ==
UInt16Type
) return XmlConvert.ToString((ushort) value);
2496
if (destinationType ==
UInt16Type
) return Int32ToUInt16(XmlConvert.ToInt32((string) value));
2554
if (destinationType ==
UInt16Type
) {
2642
if (clrType ==
UInt16Type
) return true;
3007
if (sourceType ==
UInt16Type
) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value));
3179
if (itemTypeDst ==
UInt16Type
) return ToArray<ushort>(value, nsResolver);