Domain.User.OnUserPropertySet C# (CSharp) Method

OnUserPropertySet() protected method

protected OnUserPropertySet ( UserPropertySetEvent e ) : void
e UserPropertySetEvent
return void
        protected void OnUserPropertySet(UserPropertySetEvent e)
        {
            if (_properties == null)
            {
                _properties = new Dictionary<string, UserProperty>();
            }

            if (!_properties.ContainsKey(e.Name))
            {
                _properties.Add(e.Name, new UserProperty
                                            {
                                                Name = e.Name,
                                                Value = e.Value,
                                                Type = e.Type,
                                                Format = e.Format
                                            });
            }

            _properties[e.Name] = new UserProperty
                                      {
                                          Name = e.Name,
                                          Value = e.Value,
                                          Type = e.Type,
                                          Format = e.Format
                                      };
        }