public static void Serialize(ComponentInterest instance, global::Improbable.Worker.CInterop.SchemaObject obj) { { foreach (var value in instance.Queries) { global::Improbable.ComponentInterest.Query.Serialization.Serialize(value, obj.AddObject(1)); } } }
public static ComponentInterest Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj) { var instance = new ComponentInterest(); { instance.Queries = new global::System.Collections.Generic.List <global::Improbable.ComponentInterest.Query>(); var list = instance.Queries; var listLength = obj.GetObjectCount(1); for (var i = 0; i < listLength; i++) { list.Add(global::Improbable.ComponentInterest.Query.Serialization.Deserialize(obj.IndexObject(1, (uint)i))); } } return(instance); }