Crosschat.Server.Domain.Entities.User.ChangeName C# (CSharp) Méthode

ChangeName() public méthode

public ChangeName ( string newName ) : void
newName string
Résultat void
        public void ChangeName(string newName)
        {
            if (string.IsNullOrEmpty(newName) || newName.Length > 100)
                throw new InvalidUserRegistrationDataException("New name is invalid");

            Name = newName;
        }