KerbalDataExtension RemoveChildren Method (, Func , Boolean ) KerbalData - KSP Data Unlocked!
Deletes children from the provided object

Namespace: KerbalData
Assembly: KerbalData (in KerbalData.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static int RemoveChildren(
	this JToken token,
	Func<JToken, bool> predicate
)

Parameters

token
Type: JToken
object to run operation on
predicate
Type: OnlineSystem Func JToken, OnlineBoolean 
data filter

Return Value

count of children removed that match the predicate

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type JToken. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also