Beispiel #1
0
        public void Visit(VisitPath path, object objToVisit)
        {
            if (objToVisit is not TVisitType obj)
            {
                return;
            }

            Visit(path, obj);
        }
Beispiel #2
0
        private VisitPath(VisitPath previous, string propertyName, object key, object obj)
        {
            _previous     = previous;
            _propertyName = propertyName;

            if (key is int index)
            {
                _index = index;
            }
            else
            {
                _key = key;
            }

            Target = obj;
        }
Beispiel #3
0
 protected abstract void Visit(VisitPath path, TVisitType obj);
Beispiel #4
0
 private VisitPath(VisitPath previous, string propertyName, object value)
 {
     _previous     = previous;
     _propertyName = propertyName;
     Target        = value;
 }