using System.Collections.Generic;
public class EligibleToRedirectToOneDs
public bool CookielessFlow { get; set; }
public bool IframedFlow { get; set; }
public bool EnvelopeCFR21Compliant { get; set; }
public bool NotaryInSession { get; set; }
public bool RemoteNotarySession { get; set; }
public bool USigEnvelope { get; set; }
public bool InPersonSigner { get; set; }
public bool EnvelopeInPreviewMode { get; set; }
public bool EmailSMSRecipientUsingSMSLink { get; set; }
public bool InSessionFromNDSE { get; set; }
public bool EmailStart { get; set; }
public static void Main()
EligibleToRedirectToOneDs allowList = new EligibleToRedirectToOneDs
PropertyInfo[] properties = typeof(EligibleToRedirectToOneDs).GetProperties(BindingFlags.Public | BindingFlags.Instance);
IEnumerable<PropertyInfo> enabledFeatures = properties.Where(
prop => (prop.PropertyType == typeof(bool) && (bool)allowList.GetType().GetProperty(prop.Name).GetValue(allowList, null))
Console.WriteLine(String.Join(",", enabledFeatures.Select(p=>p.ToString()).ToArray()));