GetInstance() public static méthode

public static GetInstance ( object obj ) : CertRequest
obj object
Résultat CertRequest
Exemple #1
0
 private CertReqMsg(Asn1Sequence seq)
 {
     certReq = CertRequest.GetInstance(seq[0]);
     for (int i = 1; i < seq.Count; i++)
     {
         object obj = seq[i];
         if (obj is Asn1TaggedObject || obj is ProofOfPossession)
         {
             popo = ProofOfPossession.GetInstance(obj);
         }
         else
         {
             regInfo = Asn1Sequence.GetInstance(obj);
         }
     }
 }
        private CertReqMsg(Asn1Sequence seq)
        {
            certReq = CertRequest.GetInstance(seq[0]);

            for (int pos = 1; pos < seq.Count; ++pos)
            {
                object o = seq[pos];

                if (o is Asn1TaggedObject || o is ProofOfPossession)
                {
                    popo = ProofOfPossession.GetInstance(o);
                }
                else
                {
                    regInfo = Asn1Sequence.GetInstance(o);
                }
            }
        }