- 
                Notifications
    You must be signed in to change notification settings 
- Fork 419
Zip refactoring #715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Zip refactoring #715
Conversation
| To improve the documentation, we may get a lesson from System.Linq.Enumerable.Zip method. | 
- introduce CustomZip with separate behavior by source - use CustomZip for EquiZip, ZipLongest and ZipShortest - add ValueTuple overloads - use t4 file to have up to 8 input sequences.
Remove "Source" from the name of the Zip method parameters. Typos
Fix spacing in tt files Renamed ZipLongestHelper.MoveNextOrDispose to Enumerator.Read
In Enumerator.TryRead value is now out instead of ref. Rewrite the Zip* sections in README.md
Co-Authored-By: Atif Aziz <code@raboof.com>
Added missing ArgumentNullException. Use ordinal in for type parameter names.
Conflicts resolved: - MoreLinq/EquiZip.cs - MoreLinq/Extensions.g.cs - MoreLinq/ZipLongest.cs - MoreLinq/ZipShortest.cs
Fixes following error:
    EXEC : error : Error running transform: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
       ---> System.IO.FileLoadException: Could not load file or assembly 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The parameter is incorrect. (0x80070057 (E_INVALIDARG))
      File name: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
       ---> System.ArgumentException: Path "System.Collections.dll" is not an absolute path. (Parameter 'assemblyPath')
         at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
         at Mono.TextTemplating.TemplateAssemblyLoadContext.Load(AssemblyName assemblyName) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplateAssemblyLoadContext.cs:line 57
         at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
         at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
         at System.Linq.Enumerable.Range(Int32 start, Int32 count)
         at Microsoft.VisualStudio.TextTemplating5ca31a7.GeneratedTextTransformation.TransformText()
         at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
         at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
         --- End of inner exception stack trace ---
         at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
         at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
         at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
         at Mono.TextTemplating.CompiledTemplate.TemplateProcessor.CreateAndProcess(ITextTemplatingEngineHost host, CompiledAssemblyData templateAssemblyData, String templateAssemblyFile, String fullName, CultureInfo culture, String[] referencedAssemblyFiles) in /_/Mono.TextTemplating/Mono.TextTemplating/CompiledTemplate.TemplateExecutor.cs:line 78
    | Codecov Report
 
 @@            Coverage Diff             @@
##           master     #715      +/-   ##
==========================================
- Coverage   92.49%   90.47%   -2.03%     
==========================================
  Files         113      113              
  Lines        3424     3506      +82     
  Branches     1024     1055      +31     
==========================================
+ Hits         3167     3172       +5     
- Misses        192      265      +73     
- Partials       65       69       +4     
 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more | 
This PR continues #639 since I erroneously deleted it's branch.