Class ExecutionExtensions
Extension methods to help execution.
Inheritance
System.Object
ExecutionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fluency.Execution.Extensions
Assembly: Execution.dll
Syntax
public static class ExecutionExtensions
Methods
| Improve this Doc View SourceEnqueueRange<T>(Queue<T>, IEnumerable<T>)
Puts everything in range into the queue.
Declaration
public static void EnqueueRange<T>(this Queue<T> queue, IEnumerable<T> range)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.Queue<T> | queue | |
| System.Collections.Generic.IEnumerable<T> | range |
Type Parameters
| Name | Description |
|---|---|
| T |
Is<T>(IFunction, String)
Asserts that this IFunction also implements interface T, usually one of the I[Top|Bottom][InOut] interfaces.
Declaration
public static T Is<T>(this IFunction function, string extraInfo = null)
where T : IFunction
Parameters
| Type | Name | Description |
|---|---|---|
| IFunction | function | |
| System.String | extraInfo | Will be added to the exception, if thrown. |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
Exceptions
| Type | Condition |
|---|---|
| ExecutionException | Thrown if function is not a T |
TryDequeue<T>(Queue<T>, out T)
Try to get a value from queue. Returns true if it found one.
Declaration
public static bool TryDequeue<T>(this Queue<T> queue, out T value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.Queue<T> | queue | |
| T | value |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Type Parameters
| Name | Description |
|---|---|
| T |