Exemple #1
0
 /// <inheritdoc />
 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
 {
     if (destinationType == typeof(string) && value is IHash hash)
     {
         return(HashStringRepresentation.Process(hash));
     }
     return(base.ConvertTo(context, culture, value, destinationType));
 }
Exemple #2
0
 /// <inheritdoc />
 public override string ToString()
 => HashStringRepresentation.Process(this);