Aselia.UserCommands.MetaHandler.SetProperty C# (CSharp) Метод

SetProperty() приватный Метод

private SetProperty ( UserBase user, char dir, string key, List flags, object>.IDictionary properties, string value ) : void
user UserBase
dir char
key string
flags List
properties object>.IDictionary
value string
Результат void
        private void SetProperty(UserBase user, char dir, string key, List<string> flags, IDictionary<string, object> properties, string value)
        {
            switch (dir)
            {
            case '+':
                properties[key] = value;
                user.SendNumeric(Numerics.RPL_PROPERTYSET, key, ":Property set.");
                break;

            case '-':
                flags.Remove(key);
                properties.Remove(key);
                user.SendNumeric(Numerics.RPL_FLAGSET, key, ":Flag/property cleared.");
                break;
            }
        }