SGScript.IObjectBase.OnSerialize C# (CSharp) Method