Use `Unknown` instead of `default`

This commit is contained in:
Dean Herbert 2022-07-18 16:24:08 +09:00
parent 51f91fe62e
commit 1e151baae8
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ public class RealmUser : EmbeddedObject, IUser, IEquatable<RealmUser>, IDeepClon
[Ignored]
public CountryCode CountryCode
{
get => Enum.TryParse(CountryString, out CountryCode country) ? country : default;
get => Enum.TryParse(CountryString, out CountryCode country) ? country : CountryCode.Unknown;
set => CountryString = value.ToString();
}