LuaBase.IsTypeOf Method

PartProxy

LuaBaseIsTypeOf Method

Ensure the object is of the expected type

Namespace:  PartProxy
Assembly:  PartProxy (in PartProxy.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
protected static bool IsTypeOf(
	int stackidx,
	string typename
)
Protected Shared Function IsTypeOf ( 
	stackidx As Integer,
	typename As String
) As Boolean
protected:
static bool IsTypeOf(
	int stackidx, 
	String^ typename
)
static member IsTypeOf : 
        stackidx : int * 
        typename : string -> bool 

Parameters

stackidx
Type: SystemInt32
The stackidx.
typename
Type: SystemString
The typename.

Return Value

Type: Boolean
true if [is type of] [the specified stackidx]; otherwise, false.
Exceptions
ExceptionCondition
InvalidOperationException Unable to get the lua object inner type. Object not registered. or Unable to get the lua object inner type. Object not correctly registered.
See Also