Exemple #1
0
 /**
  * Creates a new {@code JSONObject} by copying mappings for the listed names
  * from the given object. Names that aren't present in {@code copyFrom} will
  * be skipped.
  */
 public JsonObject(JsonObject copyFrom, string[] names) : this()
 {
     foreach (string name in names)
     {
         object value = copyFrom.Opt(name);
         if (value != null)
         {
             nameValuePairs[name] = value;
         }
     }
 }