TCodeTypeDeclaration.AddField Method
Adds a field to this type declaration.
Syntax
Unit: Bcl.Code.MetaClasses
function TCodeTypeDeclaration.AddField(AName: string; AType: string; AVisibility: TMemberVisibility): TCodeMemberField;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AName | string | The field name. | |
| AType | string | The field type name. | |
| AVisibility | TMemberVisibility | The visibility of the field. |
Returns
The created TCodeMemberField instance.