summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/PreserveAttribute.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/PreserveAttribute.cs')
-rw-r--r--Xamarin.Forms.Core/PreserveAttribute.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/PreserveAttribute.cs b/Xamarin.Forms.Core/PreserveAttribute.cs
new file mode 100644
index 00000000..41487c86
--- /dev/null
+++ b/Xamarin.Forms.Core/PreserveAttribute.cs
@@ -0,0 +1,23 @@
+´╗┐using System;
+
+namespace Xamarin.Forms
+{
+ [AttributeUsage(
+ AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field |
+ AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate | AttributeTargets.All)]
+ internal class PreserveAttribute : Attribute
+ {
+ public bool AllMembers;
+ public bool Conditional;
+
+ public PreserveAttribute(bool allMembers, bool conditional)
+ {
+ AllMembers = allMembers;
+ Conditional = conditional;
+ }
+
+ public PreserveAttribute()
+ {
+ }
+ }
+} \ No newline at end of file