Skip to content

InstructionOrEnumerableExtensions Class

Extension methods to help working with InstructionOrEnumerable types.

C#
public static class InstructionOrEnumerableExtensions

Inheritance object

Unwrap(IEnumerable<InstructionOrEnumerable>)

Section titled “Unwrap(IEnumerable<InstructionOrEnumerable>)”

Unwraps an IEnumerable of the wrapper type InstructionOrEnumerable which may contain an arbitrary amount of Instructions per wrapper type into a flat IEnumerable of Instruction.

C#
public static IEnumerable<Instruction> Unwrap(this IEnumerable<InstructionOrEnumerable> instructions)

instructions IEnumerable<InstructionOrEnumerable>

IEnumerable<Instruction>
A flat IEnumerable of Instruction.