internal SchemaMarshaler(RealmSchema schema) { var properties = new List <Native.SchemaProperty>(); Objects = schema.Select(@object => { var start = properties.Count; properties.AddRange(@object.Select(ForMarshalling)); return(new Native.SchemaObject { name = @object.Name, properties_start = start, properties_end = properties.Count }); }).ToArray(); Properties = properties.ToArray(); }
public SchemaMarshaler(RealmSchema schema) { var properties = new List <SchemaProperty>(); Objects = schema.Select(@object => { var start = properties.Count; properties.AddRange(@object.Select(ForMarshalling)); return(new SchemaObject { name = @object.Name, properties_start = start, properties_end = properties.Count, is_embedded = @object.IsEmbedded, }); }).ToArray(); Properties = properties.ToArray(); }