|
ObjectUtilityFromHierarchyTSource Method (TSource, FuncTSource, TSource) |
Namespace: DrawerBackup.Native.RuntimeAssembly: DrawerBackup.Native (in DrawerBackup.Native.dll) Version: 0.0.1.1 (0.0.1.1)
Syntaxpublic static IEnumerable<TSource> FromHierarchy<TSource>(
this TSource source,
Func<TSource, TSource> nextItem
)
where TSource : class
<ExtensionAttribute>
Public Shared Function FromHierarchy(Of TSource As Class) (
source As TSource,
nextItem As Func(Of TSource, TSource)
) As IEnumerable(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource>
where TSource : ref class
static IEnumerable<TSource>^ FromHierarchy(
TSource source,
Func<TSource, TSource>^ nextItem
)
[<ExtensionAttribute>]
static member FromHierarchy :
source : 'TSource *
nextItem : Func<'TSource, 'TSource> -> IEnumerable<'TSource> when 'TSource : not struct
Parameters
- source
- Type: TSource
- nextItem
- Type: SystemFuncTSource, TSource
Type Parameters
- TSource
Return Value
Type:
IEnumerableTSourceUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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