Ejemplo n.º 1
0
        private string CalculateHeading(ColumnInfo columnInfo)
        {
            if (columnInfo.FlatFileOptions == null)
            {
                return(columnInfo.ExpressionName);
            }

            var flatFileOptions = new FlatFileOptions();

            columnInfo.FlatFileOptions(flatFileOptions);

            if (flatFileOptions.GetHeading() == null)
            {
                return(columnInfo.ExpressionName);
            }

            return(flatFileOptions.GetHeading());
        }