Remove unnecessary ToArray to reduce number of BindableObject[] allocations (#4101)
This commit is contained in:
Родитель
4dfa4cd5e6
Коммит
5db2456d9e
|
@ -434,9 +434,8 @@ namespace Xamarin.Forms
|
|||
|
||||
internal void ApplyBindings(bool skipBindingContext, bool fromBindingContextChanged)
|
||||
{
|
||||
var prop = _properties.ToArray();
|
||||
for (int i = 0, propLength = prop.Length; i < propLength; i++) {
|
||||
BindablePropertyContext context = prop [i];
|
||||
for (int i = 0, propLength = _properties.Count; i < propLength; i++) {
|
||||
BindablePropertyContext context = _properties [i];
|
||||
BindingBase binding = context.Binding;
|
||||
if (binding == null)
|
||||
continue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче