// ReSharper disable once UnusedParameter.Local internal static Exception CannotCopyFixesSizeCollections( IEnumerable source, IEnumerable target, MemberSettings settings) { var error = new CannotCopyFixedSizeCollectionsError(source, target); var typeErrors = new TypeErrors(target.GetType(), error); var message = typeErrors.GetErrorText(settings, typeof(Copy).Name, settings.CopyMethodName()); return(new InvalidOperationException(message)); }
// ReSharper disable once UnusedParameter.Local internal static Exception CannotCopyFixesSizeCollections( IEnumerable source, IEnumerable target, MemberSettings settings) { var error = new CannotCopyFixedSizeCollectionsError(source, target); var typeErrors = new TypeErrors(target.GetType(), error); var message = typeErrors.GetErrorText(settings, typeof(Copy).Name, settings.CopyMethodName()); return new InvalidOperationException(message); }