summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/ExportEffectAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/ExportEffectAttribute.cs')
-rw-r--r--Xamarin.Forms.Core/ExportEffectAttribute.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/ExportEffectAttribute.cs b/Xamarin.Forms.Core/ExportEffectAttribute.cs
new file mode 100644
index 00000000..35869570
--- /dev/null
+++ b/Xamarin.Forms.Core/ExportEffectAttribute.cs
@@ -0,0 +1,20 @@
+using System;
+
+namespace Xamarin.Forms
+{
+ [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
+ public class ExportEffectAttribute : Attribute
+ {
+ public ExportEffectAttribute(Type effectType, string uniqueName)
+ {
+ if (uniqueName.Contains("."))
+ throw new ArgumentException("uniqueName must not contain a .");
+ Type = effectType;
+ Id = uniqueName;
+ }
+
+ internal string Id { get; private set; }
+
+ internal Type Type { get; private set; }
+ }
+} \ No newline at end of file