Kbase P179791: How can I obtain type information for an interface?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/05/2011 |
|
Status: Unverified
GOAL:
How can I obtain type information for an interface?
GOAL:
Why doesn't the .NET GetType() method work on an ABL interface?
FACT(s) (Environment):
Windows
OpenEdge 10.2x
FIX:
The .NET GetType() method is not implemented for ABL interface classes. Instead, use the GetClass() method:
Progress.Lang.Class:GetClass('My.Interface.Type'):TypeName
ToString() can also be used in place of TypeName.
It is possible to refer to <object reference>:GetClass():TypeName. However, because interfaces cannot be instantiated it is necessary to use the above (static) method for interfaces.