Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lbargaoanu committed May 20, 2016
1 parent 7d737a5 commit 427676c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/AutoMapper/Execution/MemberGetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ public class NulloMemberGetter : IMemberGetter
}
public class NulloMemberAccessor : NulloMemberGetter, IMemberAccessor
{
public MemberInfo MemberInfo { get; }
public string Name { get; }
public LambdaExpression GetExpression { get; }
public Type MemberType { get; }
public object GetValue(object source) => source;
public void SetValue(object destination, object value) { }
}
}
2 changes: 1 addition & 1 deletion src/AutoMapper/IMappingOperationOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface IMappingOperationOptions
void ConstructServicesUsing(Func<Type, object> constructor);

/// <summary>
/// Add context items to be accessed at map time inside an <see cref="IValueResolver"/> or <see cref="ITypeConverter{TSource, TDestination}"/>
/// Add context items to be accessed at map time inside an <see cref="IValueResolver{TSource, TMember}"/> or <see cref="ITypeConverter{TSource, TDestination}"/>
/// </summary>
IDictionary<string, object> Items { get; }

Expand Down
1 change: 1 addition & 0 deletions src/AutoMapper/IProfileConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public interface IProfileConfiguration
/// </summary>
/// <param name="typeMapRegistry">Type map registry</param>
/// <param name="closedTypes">Closed types to create</param>
/// <param name="requestedTypes">The requested types</param>
/// <returns>Configured type map, or null if not a match</returns>
TypeMap ConfigureClosedGenericTypeMap(TypeMapRegistry typeMapRegistry, TypePair closedTypes, TypePair requestedTypes);
}
Expand Down
8 changes: 4 additions & 4 deletions src/AutoMapper/Mappers/MultidimensionalArrayMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public static Array Map<TDestination, TSource, TSourceElement>(TSource source, R
destinationArray = ObjectCreator.CreateArray(destElementType, sourceArray);
filler = new MultidimensionalArrayFiller(destinationArray);
}
int count = 0;
var itemContext = new ResolutionContext(context);
foreach (var item in sourceList)
filler.NewValue(itemContext.Map(item, null, typeof(TSourceElement), destElementType));

foreach(var item in sourceList)
{
filler.NewValue(itemContext.Map(item, null, typeof(TSourceElement), destElementType));
}
return destinationArray;
}

Expand Down
2 changes: 2 additions & 0 deletions src/AutoMapper/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ protected Profile()
[Obsolete("Use the constructor instead. Will be removed in 6.0")]
protected virtual void Configure() { }

#pragma warning disable 618
internal void Initialize() => Configure();
#pragma warning restore 618

public virtual string ProfileName { get; }

Expand Down
1 change: 0 additions & 1 deletion src/AutoMapper/QueryableExtensions/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ params Expression<Func<TDestination, object>>[] membersToExpand
/// </summary>
/// <typeparam name="TDestination">Destination type to map to</typeparam>
/// <param name="source">Queryable source</param>
/// <param name="configuration">Mapper configuration</param>
/// <param name="parameters">Optional parameter object for parameterized mapping expressions</param>
/// <param name="membersToExpand">Explicit members to expand</param>
/// <returns>Queryable result, use queryable extension methods to project and execute result</returns>
Expand Down

0 comments on commit 427676c

Please sign in to comment.