Example #1
0
 public XElement ToXml()
 {
     return(new XElement(
                NA.saml + "Subject",
                //BaseID == null ? null : BaseID.ToXml(),
                NameID == null ? null : NameID.ToXml(),
                //EncryptedID== null ? null : EncryptedID.ToXml(),
                SubjectConfirmations == null ? null : from x in SubjectConfirmations where x != null select x.ToXml()
                ));
 }
Example #2
0
 public virtual XElement ToXml()
 {
     return(new XElement(
                NA.saml + "SubjectConfirmation",
                new XAttribute("Method", Method),
                //BaseID == null ? null : BaseID.ToXml(),
                NameID == null ? null : NameID.ToXml(),
                //EncryptedID == null ? null : EncryptedID.ToXml(),
                SubjectConfirmationData == null ? null : SubjectConfirmationData.ToXml()
                ));
 }