TryParseValue() abstract private method

abstract private TryParseValue ( object value, XmlNameTable nameTable, IXmlNamespaceResolver namespaceResolver, object &typedValue ) : Exception
value object
nameTable System.Xml.XmlNameTable
namespaceResolver IXmlNamespaceResolver
typedValue object
return System.Exception
Beispiel #1
0
            private object ParseFacetValue(XmlSchemaDatatype datatype, XmlSchemaFacet facet, string code, IXmlNamespaceResolver nsmgr, XmlNameTable nameTable)
            {
                object    obj2;
                Exception innerException = datatype.TryParseValue(facet.Value, nameTable, nsmgr, out obj2);

                if (innerException != null)
                {
                    throw new XmlSchemaException(code, new string[] { innerException.Message }, innerException, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
                }
                return(obj2);
            }
Beispiel #2
0
 private object ParseFacetValue(XmlSchemaDatatype datatype, XmlSchemaFacet facet, string code, IXmlNamespaceResolver nsmgr, XmlNameTable nameTable) {
     object typedValue;
     Exception ex = datatype.TryParseValue(facet.Value, nameTable, nsmgr, out typedValue);
     if (ex == null) {
         return typedValue;
     }
     else {
         throw new XmlSchemaException(code, new string[] {ex.Message} , ex, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
     }
 }
 private object ParseFacetValue(XmlSchemaDatatype datatype, XmlSchemaFacet facet, string code, IXmlNamespaceResolver nsmgr, XmlNameTable nameTable)
 {
     object obj2;
     Exception innerException = datatype.TryParseValue(facet.Value, nameTable, nsmgr, out obj2);
     if (innerException != null)
     {
         throw new XmlSchemaException(code, new string[] { innerException.Message }, innerException, facet.SourceUri, facet.LineNumber, facet.LinePosition, facet);
     }
     return obj2;
 }