GetInstance() public static method

public static GetInstance ( object obj ) : LdsVersionInfo
obj object
return LdsVersionInfo
        private LdsSecurityObject(Asn1Sequence seq)
        {
            //IL_0022: Unknown result type (might be due to invalid IL or missing references)
            if (seq == null || seq.Count == 0)
            {
                throw new ArgumentException("null or empty sequence passed.");
            }
            global::System.Collections.IEnumerator enumerator = seq.GetEnumerator();
            enumerator.MoveNext();
            version = DerInteger.GetInstance(enumerator.get_Current());
            enumerator.MoveNext();
            digestAlgorithmIdentifier = AlgorithmIdentifier.GetInstance(enumerator.get_Current());
            enumerator.MoveNext();
            Asn1Sequence instance = Asn1Sequence.GetInstance(enumerator.get_Current());

            if (version.Value.Equals(BigInteger.One))
            {
                enumerator.MoveNext();
                versionInfo = LdsVersionInfo.GetInstance(enumerator.get_Current());
            }
            CheckDatagroupHashSeqSize(instance.Count);
            datagroupHash = new DataGroupHash[instance.Count];
            for (int i = 0; i < instance.Count; i++)
            {
                datagroupHash[i] = DataGroupHash.GetInstance(instance[i]);
            }
        }
        private LdsSecurityObject(Asn1Sequence seq)
        {
            if (seq == null || seq.Count == 0)
            {
                throw new ArgumentException("null or empty sequence passed.");
            }
            IEnumerator enumerator = seq.GetEnumerator();

            enumerator.MoveNext();
            this.version = DerInteger.GetInstance(enumerator.Current);
            enumerator.MoveNext();
            this.digestAlgorithmIdentifier = AlgorithmIdentifier.GetInstance(enumerator.Current);
            enumerator.MoveNext();
            Asn1Sequence instance = Asn1Sequence.GetInstance(enumerator.Current);

            if (this.version.Value.Equals(BigInteger.One))
            {
                enumerator.MoveNext();
                this.versionInfo = LdsVersionInfo.GetInstance(enumerator.Current);
            }
            this.CheckDatagroupHashSeqSize(instance.Count);
            this.datagroupHash = new DataGroupHash[instance.Count];
            for (int i = 0; i < instance.Count; i++)
            {
                this.datagroupHash[i] = DataGroupHash.GetInstance(instance[i]);
            }
        }
        private LdsSecurityObject(
            Asn1Sequence seq)
        {
            if (seq == null || seq.Count == 0)
            {
                throw new ArgumentException("null or empty sequence passed.");
            }

            IEnumerator e = seq.GetEnumerator();

            // version
            e.MoveNext();
            version = DerInteger.GetInstance(e.Current);
            // digestAlgorithmIdentifier
            e.MoveNext();
            digestAlgorithmIdentifier = AlgorithmIdentifier.GetInstance(e.Current);

            e.MoveNext();
            Asn1Sequence datagroupHashSeq = Asn1Sequence.GetInstance(e.Current);

            if (version.HasValue(1))
            {
                e.MoveNext();
                versionInfo = LdsVersionInfo.GetInstance(e.Current);
            }

            CheckDatagroupHashSeqSize(datagroupHashSeq.Count);

            datagroupHash = new DataGroupHash[datagroupHashSeq.Count];
            for (int i = 0; i < datagroupHashSeq.Count; i++)
            {
                datagroupHash[i] = DataGroupHash.GetInstance(datagroupHashSeq[i]);
            }
        }