23 строки
446 B
C#
23 строки
446 B
C#
using System;
|
|
|
|
namespace Xamarin.Forms
|
|
{
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
|
public abstract class HandlerAttribute : Attribute
|
|
{
|
|
protected HandlerAttribute(Type handler, Type target)
|
|
{
|
|
TargetType = target;
|
|
HandlerType = handler;
|
|
}
|
|
|
|
internal Type HandlerType { get; private set; }
|
|
|
|
internal Type TargetType { get; private set; }
|
|
|
|
public virtual bool ShouldRegister()
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
} |