Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2b1d28

Browse files
Sébastien GeiserSébastien Geiser
Sébastien Geiser
authored and
Sébastien Geiser
committed
Simplifies workbook instantiation.
Uses the `new` keyword for instantiating the `XLWorkbook` in the `EvaluateCommand` instead of explicitly calling the constructor. This improves code readability.
1 parent 156cda6 commit e2b1d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎RegexDialog/Model/ExcelSheetSelection.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class ExcelSheetSelection : NotifyPropertyChangedBaseClass
2626
[JsonIgnore]
2727
public ICommand EvaluateCommand => new RelayCommand(_ =>
2828
{
29-
using(IXLWorkbook workbook = newXLWorkbook(Config.Instance.TextSourceExcelPath.MakeCopyIfLocked()))
29+
using(XLWorkbook workbook = new(Config.Instance.TextSourceExcelPath.MakeCopyIfLocked()))
3030
{
3131
try
3232
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /