maui-linux/Xamarin.Forms.Core/CollectionSynchronizationCo...

22 строки
531 B
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
namespace Xamarin.Forms
{
internal sealed class CollectionSynchronizationContext
{
internal CollectionSynchronizationContext(object context, CollectionSynchronizationCallback callback)
{
ContextReference = new WeakReference(context);
Callback = callback;
}
internal CollectionSynchronizationCallback Callback { get; private set; }
internal object Context
{
get { return ContextReference != null ? ContextReference.Target : null; }
}
internal WeakReference ContextReference { get; }
}
}