GetInstance() 공개 정적인 메소드

public static GetInstance ( object obj ) : SignerInfo
obj object
리턴 SignerInfo
예제 #1
0
 private bool CheckForVersion3(Asn1Set signerInfs)
 {
     global::System.Collections.IEnumerator enumerator = signerInfs.GetEnumerator();
     try
     {
         while (enumerator.MoveNext())
         {
             object     current  = enumerator.get_Current();
             SignerInfo instance = SignerInfo.GetInstance(current);
             if (instance.Version.Value.IntValue == 3)
             {
                 return(true);
             }
         }
     }
     finally
     {
         global::System.IDisposable disposable = enumerator as global::System.IDisposable;
         if (disposable != null)
         {
             disposable.Dispose();
         }
     }
     return(false);
 }
예제 #2
0
 private bool CheckForVersion3(Asn1Set signerInfs)
 {
     foreach (object current in signerInfs)
     {
         SignerInfo instance = SignerInfo.GetInstance(current);
         if (instance.Version.Value.IntValue == 3)
         {
             return(true);
         }
     }
     return(false);
 }
예제 #3
0
        private bool CheckForVersion3(
            Asn1Set signerInfs)
        {
            foreach (object obj in signerInfs)
            {
                SignerInfo s = SignerInfo.GetInstance(obj);

                if (s.Version.Value.IntValue == 3)
                {
                    return(true);
                }
            }

            return(false);
        }