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 @@ -758,23 +758,14 @@ internal static Guid GuidFromXllPath(string path)
758
758
#endregion
759
759
760
760
#region ExcelLimits
761
- private static ExcelLimits _xlLimits ;
762
- public static ExcelLimits ExcelLimits
761
+ static readonly ExcelLimits _xlLimits = new ExcelLimits
763
762
{
764
- get
765
- {
766
- if ( _xlLimits == null )
767
- {
768
- _xlLimits = new ExcelLimits ( ) ;
769
-
770
- _xlLimits . MaxRows = 1048576 ;
771
- _xlLimits . MaxColumns = 16384 ;
772
- _xlLimits . MaxArguments = 256 ;
773
- _xlLimits . MaxStringLength = 32767 ;
774
- }
775
- return _xlLimits ;
776
- }
777
- }
763
+ MaxRows = 1048576 ,
764
+ MaxColumns = 16384 ,
765
+ MaxArguments = 256 ,
766
+ MaxStringLength = 32767
767
+ } ;
768
+ public static ExcelLimits ExcelLimits => _xlLimits ;
778
769
#endregion
779
770
780
771
#region SupportsDynamicArrays
You can’t perform that action at this time.
0 commit comments