internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue)
{
Exception exception;
typedValue = null;
exception = binaryFacetsChecker.CheckLexicalFacets(ref s, this);
if (exception != null) goto Error;
byte[] byteArrayValue = null;
try
{
byteArrayValue = Convert.FromBase64String(s);
}
catch (ArgumentException e)
{
exception = e;
goto Error;
}
catch (FormatException e)
{
exception = e;
goto Error;
}
exception = binaryFacetsChecker.CheckValueFacets(byteArrayValue, this);
if (exception != null) goto Error;
typedValue = byteArrayValue;
return null;
Error:
return exception;
}
}