NDepend.API Documentation
ToEnumerable<TElement> Method
NDepend.Helpers Namespace > ExtensionMethodsEnumerable Class : ToEnumerable<TElement> Method
The type of element.
The single element in the returned enumerable.
Gets an enumerable object that contains only the single element element.
Syntax
[Extension()]
public static IEnumerable<TElement> ToEnumerable<TElement>( 
   TElement element
)

Parameters

element
The single element in the returned enumerable.

Type Parameters

TElement
The type of element.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsEnumerable Class
ExtensionMethodsEnumerable Members