/// <summary> /// Creates a new instance of <see cref="MapperScope"/> using given parent and context. /// </summary> /// <param name="parentScope">The parent scope.</param> /// <param name="context">The context to use in this scope.</param> public MapperScope(MapperScope parentScope, MapperContext context) { Context = context ?? throw new ArgumentNullException(nameof(context)); ParentScope = parentScope; }
/// <summary> /// Creates a new instance of <see cref="MapperScope"/> using given scope as parent. /// </summary> /// <param name="parentScope">The parent scope.</param> public MapperScope(MapperScope parentScope) { ParentScope = parentScope; }