Encapsulates a method that receives a read-only span of objects of type T
and a state object of type TArg
.
generic <typename T, typename TArg>
public delegate void ReadOnlySpanAction(ReadOnlySpan<T> span, TArg arg);
public delegate void ReadOnlySpanAction<T,in TArg>(ReadOnlySpan<T> span, TArg arg) where TArg : allows ref struct;
public delegate void ReadOnlySpanAction<T,in TArg>(ReadOnlySpan<T> span, TArg arg);
type ReadOnlySpanAction<'T, 'Arg> = delegate of ReadOnlySpan<'T> * 'Arg -> unit
Public Delegate Sub ReadOnlySpanAction(Of T, In TArg)(span As ReadOnlySpan(Of T), arg As TArg)
Type Parameters
The type of the objects in the read-only span.
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.
ParametersA state object of type TArg
.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4