Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] Small refactoring to
AddKeepAlives
me…
…thod (#8423) The `method.Parameters.Count == 0` check should be faster than LINQ's `Any` call (`CustomAttributes.Any`). So moved it first. Moved some variables near their usage, particularly, `GetILProcessor` which may allocate unnecessarily if `GC.KeepAlive(...)` call was already found. It's not a big of problem though as it's not very common.
- Loading branch information