public object this[ChainSegment segment] { get { if (_accessor.TryGetValue(_instance, segment, out var value)) { return(value); } return(null); } }
public object this[ChainSegment segment] => _memberAccessor != null && _memberAccessor.TryGetValue(_data, segment, out var value) ? value : null;