Пример #1
0
        protected virtual object ConvertToFile(object value, MetaDataType dest, string destFieldName, int rowIndex, out MdpImportWarning[] warnings)
        {
            warnings = null;
            if (OnConvertToFile != null)
            {
                MetaObjectResolverEventArgs e = new MetaObjectResolverEventArgs(value, destFieldName, dest);

                OnConvertToFile(this, e);

                warnings = e.Warnings;

                return(e.Value);
            }
            else
            {
                return(null);
            }
        }
Пример #2
0
        protected virtual object ConvertToFile(object value, MetaDataType dest, string destFieldName, int rowIndex, out MdpImportWarning[] warnings)
        {
            warnings = null;
            if (OnConvertToFile != null)
            {
                MetaObjectResolverEventArgs e = new MetaObjectResolverEventArgs(value, destFieldName, dest);

                OnConvertToFile(this, e);

                warnings = e.Warnings;

                return e.Value;
            }
            else return null;
        }