public void SetObjectData(ISerializationData dataHolder, ISerializationContext context) { object o = this; SerializationServices.ExtractFromFieldData(dataHolder, ref o, true); var set = dataHolder.GetValue <Condition[]>("Set"); if (set != null) { m_conditions = new List <Condition>(set); } }
public void SetObjectData(ref object obj, IObjectGraphNode node) { var data = node.ToSerializationData(); SerializationServices.ExtractFromFieldData(data, ref obj, true); }