blob: b9dc9ecb822a6ecb8950b7d1293c343746bbe31c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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;
}
}
}
|