Associates the passed custom class instance with the specified key in this object.

Namespace: Sfs2X.Entities.Data
Assembly: SmartFox2X (in SmartFox2X.dll) Version: 1.7.0.0 (1.7.0)

Syntax

C#
public virtual void PutClass(
	string key,
	Object val
)

Parameters

key
Type: System..::..String
The key with which the specified custom class instance is to be associated.
val
Type: System..::..Object
The custom class instance to be associated with the specified key.

Implements

ISFSObject..::..PutClass(String, Object)

Remarks

Read the GetClass(String) method description for more informations.

IMPORTANT: class serialization is not supported in Unity WebGL.

See Also