//------------------------------------------------- public Node(string ThisKey, object ThisValue, INodeNotificationListener ThisListener) { if (string.IsNullOrEmpty(ThisKey)) { this._Key = Guid.NewGuid().ToString("N"); } else { this._Key = ThisKey; } this._Value = ThisValue; this._Listener = ThisListener; return; }
//------------------------------------------------- public GenericNode ( string Key_in , T Value_in , INodeNotificationListener Listener_in ) { if (Key_in.Length == 0) { this._Key = Guid.NewGuid().ToString("N"); } else { this._Key = Key_in; } this._Value = Value_in; this._Listener = Listener_in; }
//------------------------------------------------- public Node() { this._Key = Guid.NewGuid().ToString("N"); this._Value = null; this._Listener = null; }
public StringNode(string Key_in, string Value_in, INodeNotificationListener Listener_in) : base(Key_in, Value_in, Listener_in) { return; }
public ObjectNode(string Key_in, object Value_in, INodeNotificationListener Listener_in) : base(Key_in, Value_in, Listener_in) { return; }
////------------------------------------------------- //public enum NodeRelationships //{ // None = 0, // PrevNode, // // D3 = C2.Prev A1 // NextNode, // // C3 = C2.Next +- B1 // FirstNode, // // A1 = C1.First | +- C1 // LastNode, // // C7 = C1.Last | | +- D1 // RootNode, // // A1 = C1.Root | | +- D2 // ParentNode, // // B1 = C1.Parent | | +- D3 // PrevSibNode, // // C1 = C2.PrevSib | +- C2 // NextSibNode, // // C2 = C1.NextSib | +- C3 // FirstSibNode, // // C1 = C1.FirstSib +- B2 // LastSibNode, // // C3 = C1.LastSib | +- C4 // FirstChildNode, // // B1 = A1.FirstChild | +- C5 // LastChildNode, // // B3 = A1.LastChild | +- C6 // FirstDescNode, // // B1 = A1.FirstDesc +- B3 // LastDescNode // // C7 = A1.LastDesc +- C7 //} ////------------------------------------------------- //public interface INodeReference //{ // GenericNode<T> Node // { // get; // } //} //------------------------------------------------- public GenericNode() { this._Key = Guid.NewGuid().ToString("N"); this._Value = default(T); this._Listener = null; }