다음을 통해 공유


NormalizedSnapshotSpanCollection.Implicit Operator

Definition

public:
 static operator Microsoft::VisualStudio::Text::NormalizedSpanCollection ^(Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ spans);
public static implicit operator Microsoft.VisualStudio.Text.NormalizedSpanCollection (Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection spans);
static member op_Implicit : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection -> Microsoft.VisualStudio.Text.NormalizedSpanCollection
Public Shared Widening Operator CType (spans As NormalizedSnapshotSpanCollection) As NormalizedSpanCollection

Parameters

spans
NormalizedSnapshotSpanCollection

The collection to convert.

Returns

A NormalizedSpanCollection containing the corresponding normalized collection of Span objects.

Remarks

This conversion heap allocates a new NormalizedSpanCollection and potentially it's backing array. If used in a high traffic or performance sensitive context, consider whether the originating NormalizedSnapshotSpanCollection can just be used instead.

Applies to