int GetTypeIdent( System.Type type )

robot_2Generated
code_blocksInput

Description

The GetTypeIdent method retrieves a unique identifier for a given type. This identifier can be used to reference the type within the Sandbox environment, facilitating type management and operations that require type identification.

Usage

To use the GetTypeIdent method, you need to pass a System.Type object representing the type for which you want to obtain the identifier. The method returns an int that uniquely identifies the type within the Sandbox environment.

Example

// Example of using GetTypeIdent
Type myType = typeof(MyCustomClass);
int typeId = TypeLibrary.GetTypeIdent(myType);

// Use typeId for further operations
// For example, logging or storing the identifier
Log.Info($"The type identifier for MyCustomClass is {typeId}");