/// <summary> /// Parses the extension. /// </summary> /// <typeparam name="T">The type of extension.</typeparam> /// <param name="elementName">Name of the element (null means use type name).</param> /// <returns>The extension if found. Null otherwise.</returns> public T ParseExtension <T>(XmlQualifiedName elementName) { return(Utils.ParseExtension <T>(m_extensions, elementName)); }
/// <summary> /// Looks for an extension with the specified type and uses the DataContractSerializer to parse it. /// </summary> /// <typeparam name="T">The type of extension.</typeparam> /// <param name="elementName">Name of the element (null means use type name).</param> /// <returns>The extension if found. Null otherwise.</returns> public T ParseExtension <T>(XmlQualifiedName elementName) => Utils.ParseExtension <T>(m_extensions, elementName);