示例#1
0
 public new string GetValue(string name)
 {
     if (dict.ContainsKey(name))
     {
         JSONSimple js = dict[name] as JSONSimple;
         if (js != null)
         {
             return(js.ValueS);
         }
     }
     return(null);
 }
示例#2
0
        public string GetValue(string name)
        {
            JSONObjectNode jo = this as JSONObjectNode;

            if (jo != null)
            {
                return(jo.GetValue(name));
            }
            JSONSimple js = this as JSONSimple;

            if (js != null)
            {
                return(js.ToString());
            }
            return(null);
        }