IBM Support

Generating a C# Field corresponding to a C# Property

Fix Readme


Abstract

Generating a C# Field corresponding to a C# Property with getter and/or setter appropriately getting and/or setting the field's value.

Content

C# Properties are usually associated with a Field. Therefore, generating an empty C# Property required you to add reference to some Field manually in the code after running the transformation.

The stereotype <<CSharp Property>> has a new property called "field_name". In order to generate a Field corresponding to this Property, populate field_name with the name of the field. A Field with a type the same as that of the Property would be generated if it does not already exist, along with the appropriate Property accessors that get and/or set the field's value.

If there is no value in field_name, then the default body is generated for a C# Property, that throws "not implemented exception".

[{"Product":{"code":"SS5HXK","label":"Rational Modeling Extension for Microsoft .NET"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Transformation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.0.6;7.0.5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
Rational Modeling Extension for Microsoft .NET

Software version:
7.0.0.6, 7.0.5.1

Operating system(s):
Windows

Document number:
96255

Modified date:
16 June 2018

UID

swg21296660