コード例 #1
0
        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
            });
        }
コード例 #2
0
 public new void RegisterXmlAttribute(string attributeName, QXAttributeEncoder <T> encoder, QXAttributeDecoder <T> decoder)
 => base.RegisterXmlAttribute(attributeName, encoder, decoder);