GetInstance() public static method

public static GetInstance ( object obj ) : TimeStampAndCrl
obj object
return TimeStampAndCrl
        private TimeStampTokenEvidence(Asn1Sequence seq)
        {
            this.timeStampAndCrls = new TimeStampAndCrl[seq.Count];
            int num = 0;

            foreach (Asn1Encodable asn1Encodable in seq)
            {
                this.timeStampAndCrls[num++] = TimeStampAndCrl.GetInstance(asn1Encodable.ToAsn1Object());
            }
        }
Beispiel #2
0
        private TimeStampTokenEvidence(Asn1Sequence seq)
        {
            timeStampAndCrls = new TimeStampAndCrl[seq.Count];
            int num = 0;

            global::System.Collections.IEnumerator enumerator = seq.GetEnumerator();
            try
            {
                while (enumerator.MoveNext())
                {
                    Asn1Encodable asn1Encodable = (Asn1Encodable)enumerator.get_Current();
                    timeStampAndCrls[num++] = TimeStampAndCrl.GetInstance(asn1Encodable.ToAsn1Object());
                }
            }
            finally
            {
                global::System.IDisposable disposable = enumerator as global::System.IDisposable;
                if (disposable != null)
                {
                    disposable.Dispose();
                }
            }
        }