public IList AllPgpObjects() { ArrayList result = new ArrayList(); PgpObject pgpObject; while ((pgpObject = NextPgpObject()) != null) { result.Add(pgpObject); } return result; } }