Encode() public method

public Encode ( Stream outStr ) : void
outStr Stream
return void
Example #1
0
 public virtual void Encode(Stream outStr)
 {
     //IL_0008: Unknown result type (might be due to invalid IL or missing references)
     if (outStr == null)
     {
         throw new ArgumentNullException("outStr");
     }
     global::System.Collections.IEnumerator enumerator = ((global::System.Collections.IEnumerable)keys).GetEnumerator();
     try
     {
         while (enumerator.MoveNext())
         {
             PgpPublicKey pgpPublicKey = (PgpPublicKey)enumerator.get_Current();
             pgpPublicKey.Encode(outStr);
         }
     }
     finally
     {
         global::System.IDisposable disposable = enumerator as global::System.IDisposable;
         if (disposable != null)
         {
             disposable.Dispose();
         }
     }
 }