public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (destinationType == typeof(string)) { // Show full registry string Feature feature = value as Feature; return(DebugOptions.GetOptions(feature?.Name)); } return(base.ConvertTo(context, culture, value, destinationType)); }
public static string GetDebugTokens(Type featureType) { return(DebugOptions.GetOptions(GetFeatureName(featureType))); }