public CandidateProperty?RelativeTo(PropertyPath basePath) { var newPath = RelativePath.RelativeTo(basePath); return(newPath != null ? (CandidateProperty?)new CandidateProperty(Object, Property, newPath) : null); }
CandidateProperty(object obj, IProperty property, PropertyPath path) { Object = obj; Property = property; RelativePath = path; }