internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue)
{
Exception exception;
typedValue = null;
exception = s_numeric10FacetsChecker.CheckLexicalFacets(ref s, this);
if (exception != null) goto Error;
ushort uint16Value;
exception = XmlConvert.TryToUInt16(s, out uint16Value);
if (exception != null) goto Error;
exception = s_numeric10FacetsChecker.CheckValueFacets((int)uint16Value, this);
if (exception != null) goto Error;
typedValue = uint16Value;
return null;
Error:
return exception;
}
}