Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mono.Android] Remove more LINQ usage (#5443)
Context: #5442 Apk size of BuildReleaseArm64False/net6 comparison: apkdiff --bs -e dll$ before.apk after.apk Size difference in bytes ([*1] apk1 only, [*2] apk2 only): + 274 assemblies/Mono.Android.dll Type Android.Runtime.AndroidTypeManager - 42 Method System.Collections.Generic.IEnumerable`1<System.Type> GetTypesForSimpleReference (string) - 33 Method public void RegisterNativeMembers (Java.Interop.JniType, System.Type, string) + Method System.Collections.Generic.IEnumerable`1<System.Type> <>n__0 (string) - Type <>c__DisplayClass11_0 - Type <>c__DisplayClass11_1 + Type <GetTypesForSimpleReference>d__2 - 67 assemblies/System.Private.CoreLib.dll Type System.Array - Method public static void Fill (!!T[], !!T) - 424 assemblies/System.Linq.dll Type System.Linq.Enumerable - Method public static System.Collections.Generic.IEnumerable`1<!!TResult> Repeat (!!TResult, int) - Type RepeatIterator`1<TResult> Type System.Linq.ThrowHelper - Method static void ThrowArgumentOutOfRangeException (System.Linq.ExceptionArgument) Summary: - 217 Assemblies -0.03% (of 782,054)
- Loading branch information