--- id: tfunction title: TFunction sidebar_label: TFunction --- Type member function ## Methods ### `Method IsAbstract:Int()` Determine if function is abstract
### `Method IsFinal:Int()` Determine if function is final
### `Method ArgTypes:TTypeId[]()` Get function arg types
### `Method ReturnType:TTypeId()` Get function return type
### `Method FunctionPtr:Byte Ptr()` Get function pointer
### `Method Invoke:Object(args:Object[] = Null)` Invoke function If the function return type is a reference type, this returns the object returned by the function. 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(args:Object[] = Null)` Invoke function Like Invoke, but always returns a TBoxedValue for value types instead of converting the value to a string.