public static IInputStream AsInputStream (this Stream source) { if (source == null) throw new ArgumentNullException ("source"); return new StreamToInputStreamAdapter (source); }