コード例 #1
0
ファイル: StringMapper.cs プロジェクト: sclcwwl/Gimela
		public object Map(ResolutionContext context, IMappingEngineRunner mapper)
		{
			if (context.SourceValue == null)
			{
				return mapper.FormatValue(context.CreateValueContext(null));
			}
			return mapper.FormatValue(context);
		}
コード例 #2
0
ファイル: StringMapper.cs プロジェクト: patuww/Automapper
 public object Map(ResolutionContext context, IMappingEngineRunner mapper)
 {
     if (context.SourceValue == null)
     {
         return(mapper.FormatValue(context.CreateValueContext(null)));
     }
     return(mapper.FormatValue(context));
 }
コード例 #3
0
ファイル: StringMapper.cs プロジェクト: firestrand/AutoMapper
        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);
        }