示例#1
0
        protected override void AddCertificate(UserCertificate item)
        {
            var userCertificate = new NhUserCertificate();

            userCertificate.GetType().GetProperty("Thumbprint").SetValue(userCertificate, item.Thumbprint);
            userCertificate.GetType().GetProperty("Subject").SetValue(userCertificate, item.Subject);
            userCertificate.GetType().GetProperty("Account").SetValue(userCertificate, this);
            this.CertificatesCollection.Add(userCertificate);
        }
 protected override void AddCertificate(UserCertificate item)
 {
     var userCertificate = new NhUserCertificate();
     userCertificate.GetType().GetProperty("Thumbprint").SetValue(userCertificate, item.Thumbprint);
     userCertificate.GetType().GetProperty("Subject").SetValue(userCertificate, item.Subject);
     userCertificate.GetType().GetProperty("Account").SetValue(userCertificate, this);
     this.CertificatesCollection.Add(userCertificate);
 }