Exemple #1
0
 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));
 }
Exemple #2
0
 public static string GetDebugTokens(Type featureType)
 {
     return(DebugOptions.GetOptions(GetFeatureName(featureType)));
 }