diff --git a/ExcelHelper/ExcelHelper/ExcelHelper.cs b/ExcelHelper/ExcelHelper/ExcelHelper.cs index bcdbba1..fa448f3 100644 --- a/ExcelHelper/ExcelHelper/ExcelHelper.cs +++ b/ExcelHelper/ExcelHelper/ExcelHelper.cs @@ -81,7 +81,7 @@ namespace ExcelHelper return pairs; } - private string ConvertValue(Dictionary pairs, string key) + public string ConvertValue(Dictionary pairs, string key) { if (!pairs.ContainsKey(key)) return null; @@ -89,7 +89,7 @@ namespace ExcelHelper return pairs[key]; } - private T ConvertValue(Dictionary pairs, string key, Func func) + public T ConvertValue(Dictionary pairs, string key, Func func) { if (!pairs.ContainsKey(key) || func == null) return default(T); @@ -98,7 +98,7 @@ namespace ExcelHelper return func(value); } - private DateTime? ConvertValueToDateTime(Dictionary pairs, string key) + public DateTime? ConvertValueToDateTime(Dictionary pairs, string key) { return ConvertValue(pairs, key, x => { diff --git a/ExcelHelper/ExcelHelperFW/ExcelHelper.cs b/ExcelHelper/ExcelHelperFW/ExcelHelper.cs index 4cfbb2e..3118b77 100644 --- a/ExcelHelper/ExcelHelperFW/ExcelHelper.cs +++ b/ExcelHelper/ExcelHelperFW/ExcelHelper.cs @@ -86,7 +86,7 @@ namespace ExcelHelperFW return pairs; } - private string ConvertValue(Dictionary pairs, string key) + public string ConvertValue(Dictionary pairs, string key) { if (!pairs.ContainsKey(key)) return null; @@ -94,7 +94,7 @@ namespace ExcelHelperFW return pairs[key]; } - private T ConvertValue(Dictionary pairs, string key, Func func) + public T ConvertValue(Dictionary pairs, string key, Func func) { if (!pairs.ContainsKey(key) || func == null) return default(T); @@ -103,7 +103,7 @@ namespace ExcelHelperFW return func(value); } - private DateTime? ConvertValueToDateTime(Dictionary pairs, string key) + public DateTime? ConvertValueToDateTime(Dictionary pairs, string key) { return ConvertValue(pairs, key, x => {