Пример #1
0
        public bool ContainsKey(RString key)
        {
            if (this.properties.IsValueCreated)
            {
                return(this.properties.Value.Contains(key));
            }

            return(false);
        }
Пример #2
0
        public bool Remove(RString key)
        {
            if (this.properties.IsValueCreated && this.ContainsKey(key))
            {
                this.properties.Value.Remove(key);
                return(true);
            }

            return(false);
        }
Пример #3
0
        public bool TryGetValue(RString key, out RObject value)
        {
            if (this.properties.IsValueCreated && this.ContainsKey(key))
            {
                value = (RObject)this.properties.Value[key];
                return(true);
            }

            value = null;
            return(false);
        }
Пример #4
0
        public RObject this[RString key] {
            get {
                if (this.properties.IsValueCreated)
                {
                    return((RObject)this.properties.Value[key]);
                }

                throw new ArgumentOutOfRangeException(nameof(key));
            }
            set {
                this.properties.Value[key] = value;
            }
        }
Пример #5
0
 public void Add(RString key, RObject value)
 {
     this.properties.Value.Add(key, value);
 }
Пример #6
0
 public RClass(string className)
 {
     this[new RString("class")] = new RString(className);
 }