ISymbolFactory.CreateFieldInstance Method

Creates a singgle Instance member on a struct parent

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

ISymbol CreateFieldInstance(
    IField field,
    ISymbol parent
)

Parameters

field

Type: TwinCAT.TypeSystem.IField
Field

parent

Type: TwinCAT.TypeSystem.ISymbol
Parent Struct/Alias/Union

Return Value

Type: ISymbol
Instance member

Remarks

Because the Alias type can act like a struct, the parent can be an IAliasInstance also.

Reference

ISymbolFactory Interface

TwinCAT.TypeSystem Namespace