DictTable.staticMethodObject Method

Returns an instance of the MethodInfo class for a static method that is specified by index.

Syntax

public DictMethod staticMethodObject(int methodNumber)

Run On

Called

Parameters

  • methodNumber
    Type: int
    The one-based index to the static methods for the table, in AOT order.

Return Value

Type: DictMethod Class
An instance of the MethodInfo class for the static method that is specified by the methodNumber parameter; nullNothingnullptrunita null reference (Nothing in Visual Basic) if the instance could not be created.

Examples

The following example shows the retrieval of the static methods for a table.

DictTable dt; 
int       i; 
MethodInfo mi; 
 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    for (i=1; i <= dt.staticMethodCnt(); i++) 
    { 
        mi = dt.staticMethodObject(i); 
        if (mi) 
        { 
            print mi.name(); 
        } 
    } 
}

See Also

DictTable Class

MethodInfo Class

DictTable.staticMethodCnt Method