From 96d51b37efcc0138ca8fe3e430bc28d0e8ba5547 Mon Sep 17 00:00:00 2001 From: Luke Vo Date: Sun, 23 Apr 2023 17:32:07 +0700 Subject: [PATCH] Added NRT for Key return type. --- src/Blazored.LocalStorage/ISyncLocalStorageService.cs | 2 +- src/Blazored.LocalStorage/LocalStorageService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Blazored.LocalStorage/ISyncLocalStorageService.cs b/src/Blazored.LocalStorage/ISyncLocalStorageService.cs index 99d0da6..d29a653 100644 --- a/src/Blazored.LocalStorage/ISyncLocalStorageService.cs +++ b/src/Blazored.LocalStorage/ISyncLocalStorageService.cs @@ -29,7 +29,7 @@ public interface ISyncLocalStorageService /// /// /// The name of the key at the specified - string Key(int index); + string? Key(int index); /// /// Checks if the exists in local storage, but does not check its value. diff --git a/src/Blazored.LocalStorage/LocalStorageService.cs b/src/Blazored.LocalStorage/LocalStorageService.cs index 9373663..30f3431 100644 --- a/src/Blazored.LocalStorage/LocalStorageService.cs +++ b/src/Blazored.LocalStorage/LocalStorageService.cs @@ -201,7 +201,7 @@ public void Clear() public int Length() => _storageProvider.Length(); - public string Key(int index) + public string? Key(int index) => _storageProvider.Key(index); public bool ContainKey(string key)