MoreLinq
Trace<(Of <(<'TSource>)>)> Method (source, format)
NamespacesMoreLinqMoreEnumerableTrace<(Of <<'(TSource>)>>)(IEnumerable<(Of <<'(TSource>)>>), String)
Traces the elements of a source sequence for diagnostics using custom formatting.
Declaration Syntax
C#Visual BasicVisual C++
public static IEnumerable<TSource> Trace<TSource>(
	this IEnumerable<TSource> source,
	string format
)
<ExtensionAttribute> _
Public Shared Function Trace(Of TSource) ( _
	source As IEnumerable(Of TSource), _
	format As String _
) As IEnumerable(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource>
static IEnumerable<TSource>^ Trace(
	IEnumerable<TSource>^ source, 
	String^ format
)
Generic Template Parameters
TSource
Type of element in the source sequence
Parameters
source (IEnumerable<(Of <(<'TSource>)>)>)
Source sequence whose elements to trace.
format (String)
String to use to format the trace message. If null then the element value becomes the traced message.
Return Value
Return the source sequence unmodified.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'TSource>)>)>. When you use instance method syntax to call this method, omit the first parameter.
Remarks
This a pass-through operator that uses deferred execution and streams the results.

Assembly: MoreLinq (Module: MoreLinq.dll) Version: 1.0.16006.0 (1.0.16006.1845)