Class VisitorHelpers
Static class containing helper methods around the Visitor
Inheritance
System.Object
VisitorHelpers
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Xene
Assembly: Fusee.Xene.dll
Syntax
public static class VisitorHelpers
Methods
SingleRootEnumerable<TNode>(TNode)
Returns an enumerable enumerating only one item: the root parameter passed. This method can be used in situations where an IEnumerator is required (as a method argument) but only one single node needs to be passed.
Declaration
public static IEnumerable<TNode> SingleRootEnumerable<TNode>(TNode root)
Parameters
Type | Name | Description |
---|---|---|
TNode | root | The root to enumerate. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TNode> | An enumerable yielding only one element: the node passed as root. |
Type Parameters
Name | Description |
---|---|
TNode |
SingleRootEnumerator<TNode>(TNode)
Returns an enumerator enumerating only one item: the root parameter passed. This method can be used in situations where an IEnumerator is required (as a method argument) but only one single node needs to be passed.
Declaration
public static IEnumerator<TNode> SingleRootEnumerator<TNode>(TNode root)
Parameters
Type | Name | Description |
---|---|---|
TNode | root | The root to enumerate. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<TNode> | An enumerator yielding only one element: the node passed as root. |
Type Parameters
Name | Description |
---|---|
TNode |