forked from rigofunc/NPOI.Extension
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove the all delegates to Delegate.cs file and remove the…
… 'Delegate' suffix
- Loading branch information
yingtingxu
committed
Jul 10, 2018
1 parent
2cb105f
commit a191daf
Showing
8 changed files
with
51 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) rigofunc (xuyingting). All rights reserved. | ||
|
||
namespace FluentExcel | ||
{ | ||
/// <summary> | ||
/// Typed row data validator delegate, validate current row before adding it to the result list. | ||
/// </summary> | ||
/// <param name="rowIndex">Index of current row in excel</param> | ||
/// <param name="rowData">Model data of current row</param> | ||
/// <returns>Whether the row data passes validation</returns> | ||
public delegate bool RowDataValidator<TModel>(int rowIndex, TModel rowData) where TModel : class; | ||
|
||
/// <summary> | ||
/// Row data validator delegate, validate current row before adding it to the result list. | ||
/// </summary> | ||
/// <param name="rowIndex">Index of current row in excel</param> | ||
/// <param name="rowData">Model data of current row</param> | ||
/// <returns>Whether the row data passes validation</returns> | ||
public delegate bool RowDataValidator(int rowIndex, object rowData); | ||
|
||
/// <summary> | ||
/// Cell value validator delegate, validate current cell value before <see cref="PropertyConfiguration.CellValueConverter"/> | ||
/// </summary> | ||
/// <param name="rowIndex">Row index of current cell in excel</param> | ||
/// <param name="columnIndex">Column index of current cell in excel</param> | ||
/// <param name="value">Value of current cell</param> | ||
/// <returns>Whether the value passes validation</returns> | ||
public delegate bool CellValueValidator(int rowIndex, int columnIndex, object value); | ||
|
||
/// <summary> | ||
/// Cell value converter delegate. | ||
/// </summary> | ||
/// <param name="rowIndex">Row index of current cell in excel</param> | ||
/// <param name="columnIndex">Column index of current cell in excel</param> | ||
/// <param name="value">Value of current cell</param> | ||
/// <returns>The converted value</returns> | ||
public delegate object CellValueConverter(int rowIndex, int columnIndex, object value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.