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.GetTokens(feature?.Name));
     }
     return(base.ConvertTo(context, culture, value, destinationType));
 }
Beispiel #2
0
 public static string GetDebugTokens(Type featureType)
 {
     return(DebugOptions.GetTokens(GetFeatureName(featureType)));
 }