public XmlTree() { //set to the XTree provider by default. //m_TreeType = SerializedTreeType.XmlTree; //m_TreeType = SerializedTreeType.JSONTree; m_TreeType = SerializedTreeType.JsTree; Init(); }
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(""); }
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 ""; }
/// <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(); }
/// <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(); }