Skip to content

Commit

Permalink
Modify GetRows() and GetRowsFormatted() to return nullable IList
Browse files Browse the repository at this point in the history
  • Loading branch information
HughMacdonald committed Oct 20, 2023
1 parent 456f91b commit 6879581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GoogleSheetsWrapper/SheetHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public List<string> GetAllTabNames()
/// </summary>
/// <param name="range"></param>
/// <returns></returns>
public IList<IList<object>> GetRows(SheetRange range,
public IList<IList<object>>? GetRows(SheetRange range,

Check warning on line 116 in src/GoogleSheetsWrapper/SheetHelper.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 116 in src/GoogleSheetsWrapper/SheetHelper.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
ValueRenderOptionEnum valueRenderOption = ValueRenderOptionEnum.UNFORMATTEDVALUE,
DateTimeRenderOptionEnum dateTimeRenderOption = DateTimeRenderOptionEnum.SERIALNUMBER)
{
Expand All @@ -134,7 +134,7 @@ public IList<IList<object>> GetRows(SheetRange range,
/// </summary>
/// <param name="range"></param>
/// <returns></returns>
public IList<IList<object>> GetRowsFormatted(SheetRange range)
public IList<IList<object>>? GetRowsFormatted(SheetRange range)

Check warning on line 137 in src/GoogleSheetsWrapper/SheetHelper.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 137 in src/GoogleSheetsWrapper/SheetHelper.cs

View workflow job for this annotation

GitHub Actions / build

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
var rangeValue = range.CanSupportA1Notation ? range.A1Notation : range.R1C1Notation;

Expand Down

0 comments on commit 6879581

Please sign in to comment.