ActionExtensionsInvokeRepeatT1, T2(ActionT1, T2, T1, T2, Int32) Method

Repeteadly invokes for the specified amount of times the method that the source Action encapsulates.

Definition

Namespace: DevCase.Extensions.ActionExtensions
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static void InvokeRepeat<T1, T2>(
	this Action<T1, T2> action,
	T1 arg1,
	T2 arg2,
	int count
)

Parameters

action  ActionT1, T2
The source Action.
arg1  T1
The first parameter of the method that the source Action encapsulates.
arg2  T2
The second parameter of the method that the source Action encapsulates.
count  Int32
The amount of times to invoke the method that the source Action encapsulates.

Type Parameters

T1
The type of the first parameter of the method that the source Action encapsulates.
T2
The type of the second parameter of the method that the source Action encapsulates.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ActionT1, T2. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentOutOfRangeException Value greater than zero is required.

See Also