private CreatorMapping MapCreator(MethodInfo method) { if (method == null) { throw new ArgumentNullException("method"); } CreatorMapping creatorMapping = new CreatorMapping(this, method); _creatorMapping = creatorMapping; return(creatorMapping); }
public CreatorMapping MapCreator(Delegate creatorFunc) { if (creatorFunc == null) { throw new ArgumentNullException("creatorFunc"); } CreatorMapping creatorMapping = new CreatorMapping(this, creatorFunc); _creatorMapping = creatorMapping; return(creatorMapping); }
public CreatorMapping MapCreator(ConstructorInfo constructorInfo) { if (constructorInfo == null) { throw new ArgumentNullException("constructorInfo"); } CreatorMapping creatorMapping = new CreatorMapping(this, constructorInfo); _creatorMapping = creatorMapping; return(creatorMapping); }
public ObjectMapping <T> SetCreatorMapping(ICreatorMapping creatorMapping) { _creatorMapping = creatorMapping; return(this); }