[This is preliminary documentation and is subject to change.]
Converts a sequence into a Stack<(Of <(<'T>)>)>.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static Stack<T> AsStack<T>( this IEnumerable<T> source )
<ExtensionAttribute> _ Public Shared Function AsStack(Of T) ( _ source As IEnumerable(Of T) _ ) As Stack(Of T)
[ExtensionAttribute] public: generic<typename T> static Stack<T>^ AsStack( IEnumerable<T>^ source )
Generic Template Parameters
- T
- The type of the elements of the input sequence.
Parameters
- source (IEnumerable<(Of <(<'T>)>)>)
- The sequence to convert.
Return Value
A Stack<(Of <(<'T>)>)> containing the elements in the source sequence.