String.Create<TState>(Int32, TState, SpanAction<Char,TState>) Metodo
Definizione
Crea una nuova stringa con una lunghezza specifica e la inizializza dopo la creazione usando il callback specificato.Creates a new string with a specific length and initializes it after creation by using the specified callback.
public:
generic <typename TState>
static System::String ^ Create(int length, TState state, System::Buffers::SpanAction<char, TState> ^ action);
public static string Create<TState> (int length, TState state, System.Buffers.SpanAction<char,TState> action);
static member Create : int * 'State * System.Buffers.SpanAction<char, 'State> -> string
Public Shared Function Create(Of TState) (length As Integer, state As TState, action As SpanAction(Of Char, TState)) As String
Parametri di tipo
- TState
Tipo dell'elemento da passare a action
.The type of the element to pass to action
.
Parametri
- length
- Int32
Lunghezza della stringa da creare.The length of the string to create.
- state
- TState
Elemento da passare a action
.The element to pass to action
.
- action
- SpanAction<Char,TState>
Callback per inizializzare la stringa.A callback to initialize the string.
Restituisce
Stringa creata.The created string.