Beispiel #1
0
        VarArray GetKeys()
        {
            var result = (Var)PPBVarDictionary.GetKeys(ppvar);

            if (result.IsArray)
            {
                return((VarArray)result);
            }
            else
            {
                return(new VarArray());
            }
        }
Beispiel #2
0
 public VarDictionary() : base(Var.Empty)
 {
     ppvar = PPBVarDictionary.Create();
 }
Beispiel #3
0
        public bool HasKey(Var key)
        {
            var hasKey = PPBVarDictionary.HasKey(ppvar, key);

            return(hasKey == PPBool.True);
        }
Beispiel #4
0
 public void Delete(Var key)
 {
     PPBVarDictionary.Delete(ppvar, key);
 }
Beispiel #5
0
        public bool Set(Var key, Var value)
        {
            var setResult = PPBVarDictionary.Set(ppvar, key, value);

            return(setResult == PPBool.True);
        }
Beispiel #6
0
 public Var Get(Var key)
 {
     return(PPBVarDictionary.Get(ppvar, key));
 }