Example #1
0
        public void Add <T>(string name)
        {
            if (TryGetBind(name, out _))
            {
                return;
            }
            var v = new ValueBind <T>(name, _notifyAction);

            _valueBinds.Add(name, v);
        }
Example #2
0
        public void Add <T>(string name, T t)
        {
            if (t == null)
            {
                throw new ArgumentNullException(nameof(t));
            }
            if (_valueBinds.ContainsKey(name))
            {
                return;
            }
            var v = new ValueBind <T>(name, _notifyAction);

            _valueBinds.Add(name, v);
        }