DictTable.Staticmethodobject(Int32) Method

Definition

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

public:
 virtual System::Object ^ Staticmethodobject(int methodNumber);
public virtual object Staticmethodobject (int methodNumber);
abstract member Staticmethodobject : int -> obj
override this.Staticmethodobject : int -> obj
Public Overridable Function Staticmethodobject (methodNumber As Integer) As Object

Parameters

methodNumber
Int32

The one-based index to the static methods for the table, in AOT order.

Returns

An instance of the MethodInfo class for the static method that is specified by the methodNumber parameter; null, Nothing, nullptr, unit, a null reference (Nothing in Visual Basic) if the instance could not be created.

Remarks

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(); 
        } 
    } 
}

Applies to