Connecting various assemblies developed in other development environments may cause a situation when a Fore.NET code needs to use types (or type members) names, which match keywords of Fore.NET language.
Put @ before keywords to use them in identifiers. When types or type members are imported from linked assemblies, this character is automatically added in front of all names that match Fore.NET keywords.
Imports TestLibrary;
Imports System.Windows.Forms;
Public Class MyTextBox: TextBox
//Redefine the Readonly property
New Public Property @Readonly: boolean
Get
Begin
Return Inherited @Readonly;
End Get
Set
Begin
//Additional code before setting value
Inherited @Readonly :=;
End Set
End Property;
//Description of custom method, which name
//matches the Case keyword
Public Sub @Case();
Begin
//...Procedure code...
//Call static method, which name
//matches the Shared keyword
TestClass.@Shared();
End Sub;
End Class;
The specified class is the TextBox component. The class has redefined Readonly property and implemented a method named Case. An assembly, which includes the namespace named TestLibrary should be connected to the .NET assembly. This namespace should describe the TestClass class, which has a static procedure named Shared.
This description includes the @ character to specify identifiers matching the keyword in the Fore.NET language.
See also: