IntExtensions
Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class IntExtensions
Methods
Times(Int32)
View Source
Declaration
public static IEnumerable<int> Times(this int times)
Returns
System.Collections.Generic.IEnumerable<System.Int32>
Parameters
Type | Name |
---|---|
System.Int32 | times |
Times(Int32, Action<Int32>)
View Source
Declaration
public static void Times(this int times, Action<int> actionFn)
Parameters
Type | Name |
---|---|
System.Int32 | times |
System.Action<System.Int32> | actionFn |
Times(Int32, Action)
View Source
Declaration
public static void Times(this int times, Action actionFn)
Parameters
Type | Name |
---|---|
System.Int32 | times |
System.Action | actionFn |
Times<T>(Int32, Func<T>)
View Source
Declaration
public static List<T> Times<T>(this int times, Func<T> actionFn)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Int32 | times |
System.Func<<T>> | actionFn |
Type Parameters
T
Times<T>(Int32, Func<Int32, T>)
View Source
Declaration
public static List<T> Times<T>(this int times, Func<int, T> actionFn)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Int32 | times |
System.Func<System.Int32,<T>> | actionFn |
Type Parameters
T
TimesAsync(Int32, Func<Int32, Task>, CancellationToken)
View Source
Declaration
public static async Task TimesAsync(this int times, Func<int, Task> actionFn, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Int32 | times |
System.Func<System.Int32,System.Threading.Tasks.Task> | actionFn |
System.Threading.CancellationToken | token |
TimesAsync<T>(Int32, Func<Int32, Task<T>>, CancellationToken)
View Source
Declaration
public static async Task<List<T>> TimesAsync<T>(this int times, Func<int, Task<T>> actionFn, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Int32 | times |
System.Func<System.Int32,System.Threading.Tasks.Task<<T>>> | actionFn |
System.Threading.CancellationToken | token |
Type Parameters
T
TimesAsync(Int32, Action<Int32>)
View Source
Declaration
public static List<IAsyncResult> TimesAsync(this int times, Action<int> actionFn)
Returns
System.Collections.Generic.List<System.IAsyncResult>
Parameters
Type | Name |
---|---|
System.Int32 | times |
System.Action<System.Int32> | actionFn |
TimesAsync(Int32, Action)
View Source
Declaration
public static List<IAsyncResult> TimesAsync(this int times, Action actionFn)
Returns
System.Collections.Generic.List<System.IAsyncResult>
Parameters
Type | Name |
---|---|
System.Int32 | times |
System.Action | actionFn |