Skip to content

Commit 6510bca

Browse files
authored
Update ExcelTableCollection.cs
We may be not need to ValidateTableName
1 parent 69da777 commit 6510bca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/EPPlus/EPPlus/Table/ExcelTableCollection.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ public ExcelTable Add(ExcelAddressBase Range, string Name)
103103
}
104104
return Add(new ExcelTable(_ws, Range, Name, _ws.Workbook._nextTableID));
105105
}
106-
106+
public static bool IsValidateTableName { get; set; } = true;
107107
private void ValidateTableName(string Name)
108108
{
109+
if (!IsValidateTableName) return;
109110
if (string.IsNullOrEmpty(Name))
110111
{
111112
throw new ArgumentException("Tablename is null or empty");

0 commit comments

Comments
 (0)