public ConvertTo ( ITypeDescriptorContext context, System culture, object value, |
||
context | ITypeDescriptorContext | |
culture | System | |
value | object | |
destType | ||
return | object |
public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType)
{
if (destType == typeof(string) && value is TransactionEntry)
{
// Cast the value to an Employee type
TransactionEntry pp = (TransactionEntry)value;
return pp.EntryDateTime.ToString() + ", " + pp.SymbolAddress + ", " + pp.SymbolLength;
}
return base.ConvertTo(context, culture, value, destType);
}