} // Delete // Return true if it's legal to create or update a property of the given // name in this object. We only return false when the object (or a // prototype) has an existing property with the readOnly flag set. internal virtual bool CanPut(string propName) { JProperty prop; if (LookupProperty(propName, out prop)) return (prop.attributes & JProperty.AttrFlags.readOnly) == 0; else if (proto != null) return proto.CanPut(propName); else return true; } // CanPut