File tree Expand file tree Collapse file tree 5 files changed +5
-25
lines changed
Date Validation/.NET/Date Validation/Date Validation
List Validation/.NET/List Validation/List Validation
Number Validation/.NET/Number Validation/Number Validation
Text Length Validation/.NET/Text Length Validation/Text Length Validation
Time Validation/.NET/Time Validation/Time Validation Expand file tree Collapse file tree 5 files changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,8 @@ static void Main(string[] args)
3333
3434 #region Save
3535 //Saving the workbook
36- FileStream outputStream = new FileStream ( Path . GetFullPath ( "Output/DateValidation.xlsx" ) , FileMode . Create , FileAccess . Write ) ;
37- workbook . SaveAs ( outputStream ) ;
36+ workbook . SaveAs ( Path . GetFullPath ( "Output/DateValidation.xlsx" ) ) ;
3837 #endregion
39-
40- //Dispose streams
41- outputStream . Dispose ( ) ;
4238 }
4339 }
4440 }
Original file line number Diff line number Diff line change @@ -29,12 +29,8 @@ static void Main(string[] args)
2929
3030 #region Save
3131 //Saving the workbook
32- FileStream outputStream = new FileStream ( Path . GetFullPath ( "Output/ListValidation.xlsx" ) , FileMode . Create , FileAccess . Write ) ;
33- workbook . SaveAs ( outputStream ) ;
32+ workbook . SaveAs ( Path . GetFullPath ( "Output/ListValidation.xlsx" ) ) ;
3433 #endregion
35-
36- //Dispose streams
37- outputStream . Dispose ( ) ;
3834 }
3935 }
4036 }
Original file line number Diff line number Diff line change @@ -32,12 +32,8 @@ static void Main(string[] args)
3232
3333 #region Save
3434 //Saving the workbook
35- FileStream outputStream = new FileStream ( Path . GetFullPath ( "Output/NumberValidation.xlsx" ) , FileMode . Create , FileAccess . Write ) ;
36- workbook . SaveAs ( outputStream ) ;
35+ workbook . SaveAs ( Path . GetFullPath ( "Output/NumberValidation.xlsx" ) ) ;
3736 #endregion
38-
39- //Dispose streams
40- outputStream . Dispose ( ) ;
4137 }
4238 }
4339 }
Original file line number Diff line number Diff line change @@ -32,12 +32,8 @@ static void Main(string[] args)
3232
3333 #region Save
3434 //Saving the workbook
35- FileStream outputStream = new FileStream ( Path . GetFullPath ( "Output/TextLengthValidation.xlsx" ) , FileMode . Create , FileAccess . Write ) ;
36- workbook . SaveAs ( outputStream ) ;
35+ workbook . SaveAs ( Path . GetFullPath ( "Output/TextLengthValidation.xlsx" ) ) ;
3736 #endregion
38-
39- //Dispose streams
40- outputStream . Dispose ( ) ;
4137 }
4238 }
4339 }
Original file line number Diff line number Diff line change @@ -32,12 +32,8 @@ static void Main(string[] args)
3232
3333 #region Save
3434 //Saving the workbook
35- FileStream outputStream = new FileStream ( Path . GetFullPath ( "Output/TimeValidation.xlsx" ) , FileMode . Create , FileAccess . Write ) ;
36- workbook . SaveAs ( outputStream ) ;
35+ workbook . SaveAs ( Path . GetFullPath ( "Output/TimeValidation.xlsx" ) ) ;
3736 #endregion
38-
39- //Dispose streams
40- outputStream . Dispose ( ) ;
4137 }
4238 }
4339 }
You can’t perform that action at this time.
0 commit comments