Cuemon .NET Framework
WhileSourceTraversalHasElements<TSource> Method

The type of the source.
The source to travel until the traversal path is obstructed by an empty sequence.
The function delegate that is invoked until the traveled path is obstructed by an empty sequence.
Invokes the specified traversal path of source until obstructed by an empty sequence.
Syntax
'Declaration
 
Public Shared Function WhileSourceTraversalHasElements(Of TSource As Class)( _
   ByVal source As TSource, _
   ByVal traversal As Cuemon.Doer(Of TSource,IEnumerable(Of TSource)) _
) As IEnumerable(Of TSource)
public static IEnumerable<TSource> WhileSourceTraversalHasElements<TSource>( 
   TSource source,
   Cuemon.Doer<TSource,IEnumerable<TSource>> traversal
)
where TSource: class

Parameters

source
The source to travel until the traversal path is obstructed by an empty sequence.
traversal
The function delegate that is invoked until the traveled path is obstructed by an empty sequence.

Type Parameters

TSource
The type of the source.

Return Value

An IEnumerable sequence equal to the traveled path of source.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionsource -or- traversal is null.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

HierarchyUtility Class
HierarchyUtility Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback