We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lists of tuples are not being serialized correctly.
Steps to reproduce:
@page "/" @using Blazored.LocalStorage @inject ILocalStorageService _localstorage <button @onclick="SetLocalStorage">Click me</button> @code { private async Task SetLocalStorage() { var entries = new List<(string, int)> { ("foo", 1), ("bar", 2), ("baz", 3) }; entries.ForEach(item => Console.WriteLine($"{item.Item1}: {item.Item2}")); await _localstorage.SetItemAsync("foobarbaz", entries); entries = await _localstorage.GetItemAsync<List<(string, int)>>("foobarbaz"); entries.ForEach(item => Console.WriteLine($"{item.Item1}: {item.Item2}")); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Lists of tuples are not being serialized correctly.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: