protected void RegisterXmlElement(IQXSerializer elementSerializer, QXSingleElementSelector <T> selector, QXContentIntegrator <T> integrator) { if (_ElementInfoCollection.Contains(elementSerializer.XmlElementName)) { throw new Exception("The serializer for element \"" + elementSerializer.XmlElementName + "\" has already been registered to the parent serializer."); } _ElementInfoCollection.Add(new QXElementInfo <T>(elementSerializer) { ContentSelector = o => new object[] { selector(o) }, ContentIntegrator = integrator, ElementType = QXElementType.SingleElement }); }
public new void RegisterXmlElement(IQXSerializer elementSerializer, QXSingleElementSelector <T> selector, QXContentIntegrator <T> integrator) => base.RegisterXmlElement(elementSerializer, selector, integrator);