/// <summary>
		/// Writes the specified <see cref="Duality.Serialization.MetaFormat.MemberInfoNode"/>, including possible child nodes.
		/// </summary>
		/// <param name="node"></param>
		protected void WriteMemberInfo(MemberInfoNode node)
		{
			if (node == null) throw new ArgumentNullException("node");

			if (node.ObjId != 0) this.writer.WriteAttributeString("id", XmlConvert.ToString(node.ObjId));
			this.writer.WriteAttributeString("value", node.TypeString);
		}
Пример #2
0
		/// <summary>
		/// Writes the specified <see cref="Duality.Serialization.MetaFormat.MemberInfoNode"/>, including possible child nodes.
		/// </summary>
		/// <param name="node"></param>
		protected void WriteMemberInfo(MemberInfoNode node)
		{
			if (node == null) throw new ArgumentNullException("node");

			this.writer.Write(node.ObjId);
			this.writer.Write(node.TypeString);
		}
Пример #3
0
        /// <summary>
        /// Writes the specified <see cref="Duality.Serialization.MetaFormat.MemberInfoNode"/>, including possible child nodes.
        /// </summary>
        /// <param name="node"></param>
        protected void WriteMemberInfo(MemberInfoNode node)
        {
            if (node == null)
            {
                throw new ArgumentNullException("node");
            }

            this.writer.Write(node.ObjId);
            this.writer.Write(node.TypeString);
        }
Пример #4
0
        /// <summary>
        /// Reads a <see cref="Duality.Serialization.MetaFormat.MemberInfoNode"/>, including possible child nodes.
        /// </summary>
        /// <param name="node"></param>
        protected MemberInfoNode ReadMemberInfo(DataType dataType)
        {
            uint objId = this.reader.ReadUInt32();

            string         typeString = this.reader.ReadString();
            MemberInfoNode result     = new MemberInfoNode(dataType, typeString, objId);

            // Prepare object reference
            this.idManager.Inject(result, objId);

            return(result);
        }
Пример #5
0
        /// <summary>
        /// Writes the specified <see cref="Duality.Serialization.MetaFormat.MemberInfoNode"/>, including possible child nodes.
        /// </summary>
        /// <param name="node"></param>
        protected void WriteMemberInfo(MemberInfoNode node)
        {
            if (node == null)
            {
                throw new ArgumentNullException("node");
            }

            if (node.ObjId != 0)
            {
                this.writer.WriteAttributeString("id", XmlConvert.ToString(node.ObjId));
            }
            this.writer.WriteAttributeString("value", node.TypeString);
        }
Пример #6
0
        /// <summary>
        /// Reads a <see cref="Duality.Serialization.MetaFormat.MemberInfoNode"/>, including possible child nodes.
        /// </summary>
        /// <param name="node"></param>
        protected MemberInfoNode ReadMemberInfo(DataType dataType)
        {
            string objIdString = this.reader.GetAttribute("id");
            uint   objId       = objIdString == null ? 0 : XmlConvert.ToUInt32(objIdString);

            string         typeString = this.reader.GetAttribute("value");
            MemberInfoNode result     = new MemberInfoNode(dataType, typeString, objId);

            // Prepare object reference
            this.idManager.Inject(result, objId);

            return(result);
        }
		/// <summary>
		/// Reads a <see cref="Duality.Serialization.MetaFormat.MemberInfoNode"/>, including possible child nodes.
		/// </summary>
		/// <param name="node"></param>
		protected MemberInfoNode ReadMemberInfo(DataType dataType)
		{
			string	objIdString		= this.reader.GetAttribute("id");
			uint	objId			= objIdString == null ? 0 : XmlConvert.ToUInt32(objIdString);

			string typeString = this.reader.GetAttribute("value");
			MemberInfoNode result = new MemberInfoNode(dataType, typeString, objId);
			
			// Prepare object reference
			this.idManager.Inject(result, objId);

			return result;
		}
Пример #8
0
		/// <summary>
		/// Reads a <see cref="Duality.Serialization.MetaFormat.MemberInfoNode"/>, including possible child nodes.
		/// </summary>
		/// <param name="node"></param>
		protected MemberInfoNode ReadMemberInfo(DataType dataType)
		{
			uint objId = this.reader.ReadUInt32();

			string typeString = this.reader.ReadString();
			MemberInfoNode result = new MemberInfoNode(dataType, typeString, objId);
			
			// Prepare object reference
			this.idManager.Inject(result, objId);

			return result;
		}