Exemple #1
0
		public object Map(ResolutionContext context, IMappingEngineRunner mapper)
		{
			if (context.SourceValue == null)
			{
				return mapper.FormatValue(context.CreateValueContext(null));
			}
			return mapper.FormatValue(context);
		}
Exemple #2
0
 public object Map(ResolutionContext context, IMappingEngineRunner mapper)
 {
     if (context.SourceValue == null)
     {
         return(mapper.FormatValue(context.CreateValueContext(null)));
     }
     return(mapper.FormatValue(context));
 }
        public object Map(ResolutionContext context, IMappingEngineRunner mapper)
        {
            if (context == null) throw new ArgumentNullException("context");
            if (mapper == null) throw new ArgumentNullException("mapper");

            if (context.SourceValue == null)
            {
                return mapper.FormatValue(context.CreateValueContext(null));
            }
            return mapper.FormatValue(context);
        }