@@ -4,24 +4,6 @@ namespace FluentExcel
44{
55 using System ;
66
7- /// <summary>
8- /// Cell value validator delegate, validate current cell value before <see cref="PropertyConfiguration.CellValueConverter"/>
9- /// </summary>
10- /// <param name="rowIndex">Row index of current cell in excel</param>
11- /// <param name="columnIndex">Column index of current cell in excel</param>
12- /// <param name="value">Value of current cell</param>
13- /// <returns>Whether the value passes validation</returns>
14- public delegate bool CellValueValidatorDelegate ( int rowIndex , int columnIndex , object value ) ;
15-
16- /// <summary>
17- /// Cell value converter delegate.
18- /// </summary>
19- /// <param name="rowIndex">Row index of current cell in excel</param>
20- /// <param name="columnIndex">Column index of current cell in excel</param>
21- /// <param name="value">Value of current cell</param>
22- /// <returns>The converted value</returns>
23- public delegate object CellValueConverterDelegate ( int rowIndex , int columnIndex , object value ) ;
24-
257 /// <summary>
268 /// Represents the configuration for the specfidied property.
279 /// </summary>
@@ -72,12 +54,12 @@ public class PropertyConfiguration
7254 /// <summary>
7355 /// Gets the cell value validator to validate the cell value.
7456 /// </summary>
75- public CellValueValidatorDelegate CellValueValidator { get ; internal set ; }
57+ public CellValueValidator CellValueValidator { get ; internal set ; }
7658
7759 /// <summary>
7860 /// Gets the value converter to convert the value.
7961 /// </summary>
80- public CellValueConverterDelegate CellValueConverter { get ; internal set ; }
62+ public CellValueConverter CellValueConverter { get ; internal set ; }
8163
8264 /// <summary>
8365 /// Configures the excel cell index for the property.
@@ -150,7 +132,7 @@ public PropertyConfiguration HasAutoIndex()
150132 /// </summary>
151133 /// <param name="cellValueConverter">The value converter.</param>
152134 /// <returns>The <see cref="PropertyConfiguration"/>.</returns>
153- public PropertyConfiguration HasValueConverter ( CellValueConverterDelegate cellValueConverter )
135+ public PropertyConfiguration HasValueConverter ( CellValueConverter cellValueConverter )
154136 {
155137 CellValueConverter = cellValueConverter ;
156138
@@ -162,7 +144,7 @@ public PropertyConfiguration HasValueConverter(CellValueConverterDelegate cellVa
162144 /// </summary>
163145 /// <param name="cellValueValidator">The value validator.</param>
164146 /// <returns>The <see cref="PropertyConfiguration"/>.</returns>
165- public PropertyConfiguration HasValueValidator ( CellValueValidatorDelegate cellValueValidator )
147+ public PropertyConfiguration HasValueValidator ( CellValueValidator cellValueValidator )
166148 {
167149 CellValueValidator = cellValueValidator ;
168150
@@ -223,7 +205,7 @@ public void IsIgnored(int index, string title, string formatter = null, bool exp
223205 /// <param name="formatter">The formatter will be used for formatting the value.</param>
224206 /// <param name="allowMerge">If set to <c>true</c> allow merge the same value cells.</param>
225207 /// <param name="cellValueConverter">The value converter.</param>
226- public void HasExcelCell ( int index , string title , string formatter = null , bool allowMerge = false , CellValueConverterDelegate cellValueConverter = null )
208+ public void HasExcelCell ( int index , string title , string formatter = null , bool allowMerge = false , CellValueConverter cellValueConverter = null )
227209 {
228210 if ( index < 0 )
229211 {
@@ -248,7 +230,7 @@ public void HasExcelCell(int index, string title, string formatter = null, bool
248230 /// This method will try to autodiscover the column index by its <paramref name="title"/>
249231 /// </remarks>
250232 /// <param name="cellValueConverter">The value converter.</param>
251- public void HasAutoIndexExcelCell ( string title , string formatter = null , bool allowMerge = false , CellValueConverterDelegate cellValueConverter = null )
233+ public void HasAutoIndexExcelCell ( string title , string formatter = null , bool allowMerge = false , CellValueConverter cellValueConverter = null )
252234 {
253235 Index = - 1 ;
254236 Title = title ;
0 commit comments