public virtual long ReadContentAsLong()
{
if (!CanReadContentAs())
{
throw CreateReadContentAsException(nameof(ReadContentAsLong));
}
try
{
return XmlConvert.ToInt64(InternalReadContentAsString());
}
catch (FormatException e)
{
throw new XmlException(SR.Xml_ReadContentAsFormatException, "Long", e, this as IXmlLineInfo);
}
}