Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        public void SetObjectData(ref object obj, IObjectGraphNode node)
        {
            var data = node.ToSerializationData();

            SerializationServices.ExtractFromFieldData(data, ref obj, true);
        }