using System; using System.Xml; namespace SharpVectors.Dom { /// /// Summary description for Conversion. /// internal static class Conversion { internal static INode Cast(XmlNode node) { try { return (INode)node; } catch (InvalidCastException) { throw new DomException(DomExceptionType.WrongDocumentErr); } } internal static XmlNode Cast(INode node) { try { return (XmlNode)node; } catch (InvalidCastException) { throw new DomException(DomExceptionType.WrongDocumentErr); } } } }