MimeKit.Cryptography.X509CertificateStore.GetMatches C# (CSharp) Method

GetMatches() public method

Gets an enumerator of matching X.509 certificates based on the specified selector.
Gets an enumerator of matching X.509 certificates based on the specified selector.
public GetMatches ( IX509Selector selector ) : IEnumerable
selector IX509Selector The match criteria.
return IEnumerable
		public IEnumerable<X509Certificate> GetMatches (IX509Selector selector)
		{
			foreach (var certificate in certs) {
				if (selector == null || selector.Match (certificate))
					yield return certificate;
			}

			yield break;
		}