diff --git a/ClosedXML/ClosedXML.csproj b/ClosedXML/ClosedXML.csproj index 4682fba..8c12cc2 100644 --- a/ClosedXML/ClosedXML.csproj +++ b/ClosedXML/ClosedXML.csproj @@ -10,10 +10,11 @@ Properties ClosedXML ClosedXML - v4.5.2 + v4.0 512 ..\ true + true diff --git a/ClosedXML/Excel/Cells/XLCell.cs b/ClosedXML/Excel/Cells/XLCell.cs index 3282441..2029f97 100644 --- a/ClosedXML/Excel/Cells/XLCell.cs +++ b/ClosedXML/Excel/Cells/XLCell.cs @@ -647,7 +647,7 @@ foreach (var mi in members) { if (mi.MemberType == MemberTypes.Property && (mi as PropertyInfo).GetGetMethod().IsStatic) - _worksheet.SetValue((mi as PropertyInfo).GetValue(null), ro, co); + _worksheet.SetValue((mi as PropertyInfo).GetValue(null, null), ro, co); else if (mi.MemberType == MemberTypes.Field && (mi as FieldInfo).IsStatic) _worksheet.SetValue((mi as FieldInfo).GetValue(null), ro, co); else @@ -842,7 +842,7 @@ foreach (var mi in members) { if (mi.MemberType == MemberTypes.Property && (mi as PropertyInfo).GetGetMethod().IsStatic) - _worksheet.SetValue((mi as PropertyInfo).GetValue(null), rowNumber, columnNumber); + _worksheet.SetValue((mi as PropertyInfo).GetValue(null, null), rowNumber, columnNumber); else if (mi.MemberType == MemberTypes.Field && (mi as FieldInfo).IsStatic) _worksheet.SetValue((mi as FieldInfo).GetValue(null), rowNumber, columnNumber); else diff --git a/ClosedXML_Examples/ClosedXML_Examples.csproj b/ClosedXML_Examples/ClosedXML_Examples.csproj index b0bc2fb..9f51673 100644 --- a/ClosedXML_Examples/ClosedXML_Examples.csproj +++ b/ClosedXML_Examples/ClosedXML_Examples.csproj @@ -10,7 +10,7 @@ Properties ClosedXML_Examples ClosedXML_Examples - v4.5.2 + v4.0 512 diff --git a/ClosedXML_Examples/app.config b/ClosedXML_Examples/app.config index af399dd..21ac8f3 100644 --- a/ClosedXML_Examples/app.config +++ b/ClosedXML_Examples/app.config @@ -1,6 +1,6 @@ - + diff --git a/ClosedXML_Sandbox/ClosedXML_Sandbox.csproj b/ClosedXML_Sandbox/ClosedXML_Sandbox.csproj index fa38f46..7566bbf 100644 --- a/ClosedXML_Sandbox/ClosedXML_Sandbox.csproj +++ b/ClosedXML_Sandbox/ClosedXML_Sandbox.csproj @@ -10,10 +10,11 @@ Properties ClosedXML_Sandbox ClosedXML_Sandbox - v4.5.2 + v4.0 512 ..\ true + true diff --git a/ClosedXML_Sandbox/PerformanceRunner.cs b/ClosedXML_Sandbox/PerformanceRunner.cs index ec834ce..d64e02b 100644 --- a/ClosedXML_Sandbox/PerformanceRunner.cs +++ b/ClosedXML_Sandbox/PerformanceRunner.cs @@ -91,7 +91,7 @@ } foreach (var str in strings) { - str.SetValue(row, tmpString.ToString()); + str.SetValue(row, tmpString.ToString(), null); } // Format decimals @@ -99,7 +99,7 @@ foreach (var dec in decimals) { - dec.SetValue(row, tmpDec); + dec.SetValue(row, tmpDec, null); } // Format ints @@ -107,7 +107,7 @@ foreach (var intValue in ints) { - intValue.SetValue(row, tmpInt); + intValue.SetValue(row, tmpInt, null); } // Format dates @@ -115,7 +115,7 @@ tmpDate = tmpDate.AddSeconds(rnd.Next(-10000, 100000)); foreach (var dt in dates) { - dt.SetValue(row, tmpDate); + dt.SetValue(row, tmpDate, null); } // Format timespans @@ -123,14 +123,14 @@ foreach (var ts in timeSpans) { - ts.SetValue(row, tmpTimespan); + ts.SetValue(row, tmpTimespan, null); } // Format booleans var tmpBool = (rnd.Next(0, 2) > 0); foreach (var bl in booleans) { - bl.SetValue(row, tmpBool); + bl.SetValue(row, tmpBool, null); } return row; diff --git a/ClosedXML_Sandbox/app.config b/ClosedXML_Sandbox/app.config index af399dd..21ac8f3 100644 --- a/ClosedXML_Sandbox/app.config +++ b/ClosedXML_Sandbox/app.config @@ -1,6 +1,6 @@ - +