From fe2f333b13152b08395f7e550bffc9baec1c8511 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Wed, 1 May 2019 20:17:27 +0200 Subject: [PATCH] ref: make user.other mutable --- src/Sentry.Protocol/User.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Sentry.Protocol/User.cs b/src/Sentry.Protocol/User.cs index 336cbc6..6e5f763 100644 --- a/src/Sentry.Protocol/User.cs +++ b/src/Sentry.Protocol/User.cs @@ -48,19 +48,15 @@ public class User public string Username { get; set; } [DataMember(Name = "other", EmitDefaultValue = false)] - internal Dictionary InternalOther; + internal IDictionary InternalOther; /// - /// Additional informations about the user + /// Additional information about the user /// - /// - /// Additional informations about the user - /// - public IReadOnlyDictionary Other + public IDictionary Other { get => InternalOther ?? (InternalOther = new Dictionary()); - set => InternalOther = value.ToDictionary(entry => entry.Key, - entry => entry.Value); + set => InternalOther = value; } public User Clone()