tmethod.md 957 B


id: tmethod title: TMethod

sidebar_label: TMethod

Type member method

Methods

Method IsAbstract:Int()

Determine if method is abstract


Method IsFinal:Int()

Determine if method is final


Method ArgTypes:TTypeId[]()

Get method arg types


Method ReturnType:TTypeId()

Get method return type


Method FunctionPtr:Byte Ptr()

Get function pointer


Method Invoke:Object(obj:Object, args:Object[] = Null)

Invoke method

If the method return type is a reference type, this returns the object returned by the method. If it is a struct, it returns a TBoxedValue. If it is another value type, it returns a string representation of the returned value.


Method InvokeBoxed:Object(obj:Object, args:Object[] = Null)

Invoke method

Like Invoke, but always returns a TBoxedValue for value types instead of converting the value to a string.