Ejemplo n.º 1
0
        // Serialization

        /// <summary>
        /// Serialize the message.
        /// </summary>
        /// <param name="cout">Cout.</param>
        public override void Serialize(IBinaryWriter cout)
        {
            base.Serialize(cout);

            // class & method names
            cout.WriteInt32(CLRObjectProxy.ProxyIdFor(Obj));
            cout.WriteString(PropertyName);
            CLRMessage.SerializeValue(cout, Value);
        }
        // Serialization

        /// <summary>
        /// Serialize the message.
        /// </summary>
        /// <param name="cout">Cout.</param>
        public override void Serialize(IBinaryWriter cout)
        {
            base.Serialize(cout);

            // class & method names
            cout.WriteString(ClassName);
            cout.WriteString(PropertyName);
            CLRMessage.SerializeValue(cout, Value);
        }
Ejemplo n.º 3
0
        // Serialization

        /// <summary>
        /// Serialize the message.
        /// </summary>
        /// <param name="cout">Cout.</param>
        public override void Serialize(IBinaryWriter cout)
        {
            base.Serialize(cout);
            cout.WriteInt32(Length);

            for (int i = 0; i < Length; i++)
            {
                var obj = Value[i];
                CLRMessage.SerializeValue(cout, obj);
            }
        }
Ejemplo n.º 4
0
        // Serialization

        /// <summary>
        /// Serialize the message.
        /// </summary>
        /// <param name="cout">Cout.</param>
        public override void Serialize(IBinaryWriter cout)
        {
            base.Serialize(cout);

            // class name
            cout.WriteString(ClassName);

            // arguments
            cout.WriteUInt16((ushort)Parameters.Length);
            for (int i = 0; i < Parameters.Length; i++)
            {
                CLRMessage.SerializeValue(cout, Parameters[i]);
            }
        }
Ejemplo n.º 5
0
        // Serialization

        /// <summary>
        /// Serialize the message.
        /// </summary>
        /// <param name="cout">Cout.</param>
        public override void Serialize(IBinaryWriter cout)
        {
            base.Serialize(cout);

            // class & method names
            cout.WriteInt32(CLRObjectProxy.ProxyIdFor(Obj));
            cout.WriteString(MethodName);

            // arguments
            cout.WriteUInt16((ushort)Parameters.Length);
            for (int i = 0; i < Parameters.Length; i++)
            {
                CLRMessage.SerializeValue(cout, Parameters[i]);
            }
        }