Access inherited members of a .NET base class
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Similar to accessing inherited members of an ABL base class, you can access inherited members of a .NET base class by referencing the member name and any other required member syntax as described in the following reference entries from ABL Reference:
- Class-based data member access
- Class-based method call
- Class-based property access
-
Publish( )event method (to publish abstract .NET events that you implement in ABL) -
Subscribe( )event method -
Unsubscribe( )event method
Although you can make a naked reference to any inherited member
name, prefixing an instance member name with the THIS-OBJECT system
reference or prefixing a static member name with the type name of the defining class (static
type-name reference) can help both readability and in distinguishing
references to inherited and local class members from references
to local constructor and method data elements of the same name.
Also, as with inherited ABL class members, if an inherited .NET class
member happens to have a name that is identical with an ABL reserved keyword,
you must appropriately prefix the member name with either the THIS-OBJECT system
reference or a static type-name reference when you reference the
instance or static .NET member, respectively.