예제 #1
0
            // 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));
            }
예제 #2
0
 // 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);
 }