VAGSuite.CellHelperCollection.SymbolConverter.ConvertTo C# (CSharp) Méthode

ConvertTo() public méthode

public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destType ) : object
context ITypeDescriptorContext
culture System
value object
destType System.Type
Résultat object
            public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType)
            {
                if (destType == typeof(string) && value is CellHelper)
                {
                    // Cast the value to an Employee type
                    CellHelper pp = (CellHelper)value;

                    return pp.Value + ", " + pp.Rowhandle + ", " + pp.Columnindex;
                }
                return base.ConvertTo(context, culture, value, destType);
            }
CellHelperCollection.SymbolConverter