Example #1
0
        public void Read(BitStream stream)
        {
            Arguments = new object[ParamTypes.Length + 1];

            for (var i = 0; i < ParamTypes.Length; ++i)
            {
                Arguments[1 + i] = ReflectedSerializer.Read(stream, ParamTypes[i]);
            }
        }
Example #2
0
        public void Write(BitStream stream)
        {
            if (Parameters == null)
            {
                return;
            }

            foreach (var t in Parameters)
            {
                ReflectedSerializer.Write(stream, t, t.GetType());
            }
        }