In the following section, you will find a description and documentation of Mappings Grammar Tool.
Mappings Grammar
Mapping is a crucial concept for our migrators. It means that from a set of values as input, a function is applied to each value, and generates a set with new values.
It's a powerful tool that allows design mappings by using a syntax quite similar to C#, which is used to transform VB6 code to its equivalent in .NET (C# or VB).
This applies to the following statements:
Types
Members (Methods, properties, subroutines, events, among others)
Also, this tool offers the possibility to generate code for statements that are not supported in .NET (for more information, see Upgrade Stubs), reducing the time to carry out the compilation of a migrated project.
In the code below they are some types like enumAlign and ctTips (ctTips1), including some members like Active, Tag, ToolTipText and Alignment.
type TipsLib.ctTips => System.Windows.Forms.ToolTip;
type TipsLib.enumAlign => nomap;
member TipsLib.ctTips.Active => Active as boolean;
member TipsLib.ctTips.Container => Container;
member TipsLib.ctTips.Tag => Tag as string;
member TipsLib.ctTips.ToolTipText => ToolTipTitle as string;
member TipsLib.ctTips.Alignment => nomap;
//UPGRADE_ISSUE: (2068) TipsLib.enumAlign object was not upgraded.
UpgradeStubs.TipsLib_enumAlignEnum enumVal = (UpgradeStubs.TipsLib_enumAlignEnum) 0;
...
private void setCtTips()
{
ctTips1.Active = true;
ctTips1.Tag = "Display component";
ctTips1.ToolTipTitle = "CtTips1";
//UPGRADE_ISSUE: (2064) TipsLib.ctTips property ctTips1.Alignment was not upgraded.
ctTips1.setAlignment(enumVal);
}