Click or drag to resize

XmlExtensions.TransformAll(XDocument, XName, Func<XElement, Object> ) Method

Transforms all elements in the given document matching the given name using the given selector function to perform the transformation.

Namespace: GSF.Xml
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+cf93f5f8aea4b941e9b426fe4e180c2bd85d31a2
Syntax
public static void TransformAll(
	this XDocument document,
	XName name,
	Func<XElement, Object> selector
)
View Source

Parameters

document  XDocument
The document to be modified.
name  XName
The name of the elements to be transformed.
selector  Func<XElement, Object>
The function that defines the transformation.

Usage Note

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