From 89b39be83f6f3cbb46481cfd68eef8c95fa68bc6 Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 7 Apr 2019 12:59:59 +0200 Subject: [PATCH] Comment out dangerous methods --- src/Umbraco.Core/Mapping/MapperContext.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Umbraco.Core/Mapping/MapperContext.cs b/src/Umbraco.Core/Mapping/MapperContext.cs index 49d906ccbc..b001300952 100644 --- a/src/Umbraco.Core/Mapping/MapperContext.cs +++ b/src/Umbraco.Core/Mapping/MapperContext.cs @@ -40,6 +40,8 @@ namespace Umbraco.Core.Mapping public TTarget Map(object source) => _mapper.Map(source, this); + // let's say this is a bad (dangerous) idea, and leave it out for now + /* /// /// Maps a source object to a new target object. /// @@ -52,6 +54,7 @@ namespace Umbraco.Core.Mapping f(this); return _mapper.Map(source, this); } + */ /// /// Maps a source object to a new target object. @@ -63,6 +66,8 @@ namespace Umbraco.Core.Mapping public TTarget Map(TSource source) => _mapper.Map(source, this); + // let's say this is a bad (dangerous) idea, and leave it out for now + /* /// /// Maps a source object to a new target object. /// @@ -76,6 +81,7 @@ namespace Umbraco.Core.Mapping f(this); return _mapper.Map(source, this); } + */ /// /// Maps a source object to an existing target object. @@ -88,6 +94,8 @@ namespace Umbraco.Core.Mapping public TTarget Map(TSource source, TTarget target) => _mapper.Map(source, target, this); + // let's say this is a bad (dangerous) idea, and leave it out for now + /* /// /// Maps a source object to an existing target object. /// @@ -102,6 +110,7 @@ namespace Umbraco.Core.Mapping f(this); return _mapper.Map(source, target, this); } + */ #endregion }