PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Block Class / Instruction­Block Methods / Instruction­Block.​Get­Children­Enumerator Method / Instruction­Block.​Get­Children­Enumerator Method

InstructionBlock.GetChildrenEnumerator Method

Gets an enumerator to enumerate children blocks

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public IEnumerator<InstructionBlock> GetChildrenEnumerator()

Return Value

Type: IEnumerator<InstructionBlock>
An IEnumerator<T>.
Remarks
For performance reason, it is better to enumerate the children blocks using the linked list formed by the FirstChildBlock and NextSiblingBlock properties.
See Also