public XElement Serialize()
        {
            var result = new XElement(Constants.XMLNamespaces.DS + "SignedInfo",
                                      CanonicalizationMethod.Serialize(),
                                      SignatureMethod.Serialize());

            foreach (var reference in References)
            {
                result.Add(reference.Serialize());
            }

            return(result);
        }