SpanAction<T,TArg> Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates a method that receives a span of objects of type T
and a state object of type TArg
.
generic <typename T, typename TArg>
public delegate void SpanAction(Span<T> span, TArg arg);
public delegate void SpanAction<T,in TArg>(Span<T> span, TArg arg);
type SpanAction<'T, 'Arg> = delegate of Span<'T> * 'Arg -> unit
Public Delegate Sub SpanAction(Of T, In TArg)(span As Span(Of T), arg As TArg)
Type Parameters
- T
The type of the objects in the span.
- TArg
The type of the object that represents the state.
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.Parameters
- span
- Span<T>
A span of objects of type T
.
- arg
- TArg
A state object of type TArg
.
Extension Methods
GetMethodInfo(Delegate) |
Gets an object that represents the method represented by the specified delegate. |
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.