VAGSuite.CellHelperCollection.CellHelperCollectionConverter.ConvertTo C# (CSharp) Метод

ConvertTo() публичный Метод

public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destType ) : object
context ITypeDescriptorContext
culture System
value object
destType System.Type
Результат object
            public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destType)
            {
                if (destType == typeof(string) && value is CellHelperCollection)
                {
                    // Return department and department role separated by comma.
                    return "CellHelper";
                }
                return base.ConvertTo(context, culture, value, destType);
            }
CellHelperCollection.CellHelperCollectionConverter