public bool ContainsKey(RString key) { if (this.properties.IsValueCreated) { return(this.properties.Value.Contains(key)); } return(false); }
public bool Remove(RString key) { if (this.properties.IsValueCreated && this.ContainsKey(key)) { this.properties.Value.Remove(key); return(true); } return(false); }
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); }
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; } }
public void Add(RString key, RObject value) { this.properties.Value.Add(key, value); }
public RClass(string className) { this[new RString("class")] = new RString(className); }