<PackageReference Include="System.Security.Cryptography.Pkcs" Version="11.0.0-preview.6.26359.118" />

System.Security.Cryptography.Pkcs.RecipientInfoEnumerator

public sealed class RecipientInfoEnumerator : IEnumerator
The RecipientInfoEnumerator class provides enumeration functionality for the RecipientInfoCollection collection. RecipientInfoEnumerator implements the IEnumerator interface.
public RecipientInfo Current { get; }

The Current property retrieves the current RecipientInfo object from the RecipientInfoCollection collection.

public bool MoveNext()

The MoveNext method advances the enumeration to the next RecipientInfo object in the RecipientInfoCollection collection.

public void Reset()

The Reset method resets the enumeration to the first RecipientInfo object in the RecipientInfoCollection collection.