public IXmlMappingPart <TObject, TContext> Map <TProperty>(Expression <Func <TObject, TProperty> > expression) { var mappingPart = new XmlMappingPart <TObject, TContext>(_propertyMapFactory.CreateFor(expression), SerializerRepository, AttributeMapperRepository); _allMappingParts.Add(mappingPart); return(mappingPart); }
public virtual IXmlMappingPart <TObject, TContext> MapPrivate <TProperty>(string propertyName) { var mappingPart = new XmlMappingPart <TObject, TContext>(_propertyMapFactory.CreateFor <TObject, TProperty>(propertyName), SerializerRepository, AttributeMapperRepository); _allMappingParts.Add(mappingPart); return(mappingPart); }