<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Cms.CmsTypedStream

public class CmsTypedStream : IDisposable
public Stream ContentStream { get; }

public string ContentType { get; }

public CmsTypedStream(Stream inStream)

public CmsTypedStream(string oid, Stream inStream)

public CmsTypedStream(string oid, Stream inStream, int bufSize)

public CmsTypedStream(DerObjectIdentifier contentType, Stream contentStream)

public CmsTypedStream(DerObjectIdentifier contentType, Stream contentStream, int bufSize)

public void Dispose()

protected virtual void Dispose(bool disposing)

public void Drain()