internal void Pop(DataPropertyStore traitStore) { System.Diagnostics.Debug.Assert(_availableTrait != null); var element = _availableTrait; _availableTrait = null; _reversePath.Push(element); }
internal void Push(DataPropertyStore traitStore) { System.Diagnostics.Debug.Assert(_reversePath.Count == 1, "SessionListenerPath.Expected to have target node, but does not."); string current = UnavailableTrait; if (traitStore.Name != current) { throw new ArgumentException(string.Format("Trait store '{0}' was expected. Trait store '{1}' was supplied.", current, traitStore.Name)); } _availableTrait = current; _reversePath.Pop(); }