<PackageReference Include="System.Security.Cryptography.Pkcs" Version="10.0.12" />

System.Security.Cryptography.Pkcs.CmsRecipientEnumerator

public sealed class CmsRecipientEnumerator : IEnumerator
The CmsRecipientEnumerator class provides enumeration functionality for the CmsRecipientCollection collection. CmsRecipientEnumerator implements the IEnumerator interface.
public CmsRecipient Current { get; }

The Current property retrieves the current CmsRecipient object from the CmsRecipientCollection collection.

public bool MoveNext()

The MoveNext method advances the enumeration to the next CmsRecipient object in the CmsRecipientCollection collection.

public void Reset()

The Reset method resets the enumeration to the first CmsRecipient object in the CmsRecipientCollection collection.