Beispiel #1
0
        /// <summary>
        /// Removes the property with the specified name.
        /// </summary>
        /// <param name="propertyName">Name of the property.</param>
        /// <returns>true if item was successfully removed; otherwise, false.</returns>
        public bool Remove(string propertyName)
        {
            JProperty property = Property(propertyName);

            if (property == null)
            {
                return(false);
            }

            property.Remove();
            return(true);
        }