-
-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Labels
BugSomething isn't workingSomething isn't workingNeeds: External ResolutionThe issues needs a fix in an external projectThe issues needs a fix in an external projectResolved: CompletedThe issue has been resolvedThe issue has been resolved
Description
I tested int and string properties. The values in setTest exist in local storage but the default values are assigned to var getTest. If I make the setter public it works.
var setTest = new Test();
setTest.SetValues(2, "changed");
Console.WriteLine($"setTest: {setTest.IntValue} {setTest.StringValue}");
await LocalStorage.SetItemAsync("test", setTest);
var getTest = await LocalStorage.GetItemAsync("test");
Console.WriteLine($"getTest: {getTest.IntValue} {getTest.StringValue}");
public class Test
{
public Int32 IntValue { get; private set; } = 1;
public String StringValue { get; private set; } = "default";
public void SetValues(Int32 intValue, String stringValue)
{
IntValue = intValue;
StringValue = stringValue;
}
}
Metadata
Metadata
Assignees
Labels
BugSomething isn't workingSomething isn't workingNeeds: External ResolutionThe issues needs a fix in an external projectThe issues needs a fix in an external projectResolved: CompletedThe issue has been resolvedThe issue has been resolved