Esempio n. 1
0
        public XmlTree()
        {
            //set to the XTree provider by default.
            //m_TreeType = SerializedTreeType.XmlTree;
            //m_TreeType = SerializedTreeType.JSONTree;
            m_TreeType = SerializedTreeType.JsTree;

            Init();
        }
Esempio n. 2
0
        public string ToString(SerializedTreeType type)
        {
            switch (type)
            {
            case SerializedTreeType.XmlTree:
                return(SerializableData.Serialize(this, typeof(XmlTree)));

            case SerializedTreeType.JsTree:
                return(m_JSSerializer.Serialize(this.treeCollection));

            case SerializedTreeType.JSONTree:
                return(m_JSSerializer.Serialize(this));
            }
            return("");
        }
Esempio n. 3
0
		public string ToString(SerializedTreeType type)
		{
			switch (type)
			{
				case SerializedTreeType.XmlTree:
					return SerializableData.Serialize(this, typeof(XmlTree));
				case SerializedTreeType.JsTree:
					return m_JSSerializer.Serialize(this.treeCollection);
				case SerializedTreeType.JSONTree:
					return m_JSSerializer.Serialize(this);
			}
			return "";
		}
Esempio n. 4
0
		/// <summary>
		/// Use this constructor to force a tree provider to be used
		/// </summary>
		/// <param name="treeType"></param>
		public XmlTree(SerializedTreeType treeType)
		{
			m_TreeType = treeType;
			Init();
		}
Esempio n. 5
0
 /// <summary>
 /// Use this constructor to force a tree provider to be used
 /// </summary>
 /// <param name="treeType"></param>
 public XmlTree(SerializedTreeType treeType)
 {
     m_TreeType = treeType;
     Init();
 }