Пример #1
0
        /// <summary>
        /// ISerializable interface implementation
        /// </summary>
        /// <param name="info">Serialization info</param>
        /// <param name="context">Streaming context</param>
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            string t = Arrow.GetType().FullName;

            if (!t.Equals(type))
            {
                type = t;
            }
            info.AddValue("Kind", type);
            info.AddValue("Type", kind);
            info.AddValue("Name", name);
            info.AddValue("Arrow", arrow);
            info.AddValue("SourceNumber", sourceNumber);
            info.AddValue("TargetNumber", targetNumber);
            PureDesktopPeer.SaveLabel(label, bytes, info);
        }
Пример #2
0
        /// <summary>
        /// ISerializable interface implementation
        /// </summary>
        /// <param name="info">Serialization info</param>
        /// <param name="context">Streaming context</param>
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            string t = Object.GetType().FullName;

            if (!t.Equals(type))
            {
                type = t;
            }
            info.AddValue("Kind", type);
            info.AddValue("Type", kind);
            info.AddValue("Name", name);
            info.AddValue("X", x);
            info.AddValue("Y", y);
            info.AddValue("Object", obj);
            PureDesktopPeer.SaveLabel(label, bytes, info);
        }