File tree Expand file tree Collapse file tree 1 file changed +7
-16
lines changed
Source/ExcelDna.Integration Expand file tree Collapse file tree 1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -738,23 +738,14 @@ internal static Guid GuidFromXllPath(string path)
738738 #endregion
739739
740740 #region ExcelLimits
741- private static ExcelLimits _xlLimits ;
742- public static ExcelLimits ExcelLimits
741+ static readonly ExcelLimits _xlLimits = new ExcelLimits
743742 {
744- get
745- {
746- if ( _xlLimits == null )
747- {
748- _xlLimits = new ExcelLimits ( ) ;
749-
750- _xlLimits . MaxRows = 1048576 ;
751- _xlLimits . MaxColumns = 16384 ;
752- _xlLimits . MaxArguments = 256 ;
753- _xlLimits . MaxStringLength = 32767 ;
754- }
755- return _xlLimits ;
756- }
757- }
743+ MaxRows = 1048576 ,
744+ MaxColumns = 16384 ,
745+ MaxArguments = 256 ,
746+ MaxStringLength = 32767
747+ } ;
748+ public static ExcelLimits ExcelLimits => _xlLimits ;
758749 #endregion
759750
760751 #region SupportsDynamicArrays
You can’t perform that action at this time.
0 commit comments