protected void RegisterXmlAttribute(string attributeName, QXAttributeEncoder <T> encoder, QXAttributeDecoder <T> decoder) { if (_AttributeInfoCollection.Contains(attributeName)) { throw new Exception("The attribute \"" + attributeName + "\" has already been registered to the serializer."); } _AttributeInfoCollection.Add(new QXAttributeInfo <T>(attributeName) { Encoder = encoder, Decoder = decoder }); }
public new void RegisterXmlAttribute(string attributeName, QXAttributeEncoder <T> encoder, QXAttributeDecoder <T> decoder) => base.RegisterXmlAttribute(attributeName, encoder, decoder);