/// <summary>
        /// Default copy constructor
        /// </summary>
        /// <param name="orig">the object to copy from</param>
        public PacketSerializer(PacketSerializer <PacketStruct> orig)
        {
            m_formatter.AssemblyFormat = FormatterAssemblyStyle.Simple;
            Mode = orig.Mode;
            switch (Mode)
            {
            case SerializerMode.ALLOW_ALL_ASSEMBLY_VERSION_DESERIALIZATION:
                m_formatter.Binder = new AllowAllAssemblyVersionDeserializationBinder();
                break;

            case SerializerMode.DEFAULT:
            case SerializerMode.SILVERLIGHT_SERIALIZER:
                break;
            }
            m_stream = orig.m_stream;
        }
 /// <summary>
 /// Default copy constructor
 /// </summary>
 /// <param name="orig">the object to copy from</param>
 public PacketSerializer(PacketSerializer <PacketStruct> orig)
 {
     m_stream = orig.m_stream;
 }