diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-04-26 09:20:55 -0600 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-04-26 11:20:55 -0400 |
commit | 9ae4ea3c82444561353eb77bf746f96cdbfb4583 (patch) | |
tree | 32ee282cbb9ed796f67486222a43a4fe654f3b5e /Xamarin.Forms.Core | |
parent | 8fd53765e6d80f39e4f967a083cff85c29cb19ef (diff) | |
download | xamarin-forms-9ae4ea3c82444561353eb77bf746f96cdbfb4583.tar.gz xamarin-forms-9ae4ea3c82444561353eb77bf746f96cdbfb4583.tar.bz2 xamarin-forms-9ae4ea3c82444561353eb77bf746f96cdbfb4583.zip |
Prepare Preserve attribute usage for removal of InternalsVisibleTo (#121)
* Move PreserveAttribute to Internals to prep for removal of InternalsVisibleTo
* Update docs
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r-- | Xamarin.Forms.Core/Interactivity/EventTrigger.cs | 1 | ||||
-rw-r--r-- | Xamarin.Forms.Core/Internals/PreserveAttribute.cs | 21 | ||||
-rw-r--r-- | Xamarin.Forms.Core/PreserveAttribute.cs | 23 | ||||
-rw-r--r-- | Xamarin.Forms.Core/Properties/AssemblyInfo.cs | 1 | ||||
-rw-r--r-- | Xamarin.Forms.Core/Xamarin.Forms.Core.csproj | 2 |
5 files changed, 24 insertions, 24 deletions
diff --git a/Xamarin.Forms.Core/Interactivity/EventTrigger.cs b/Xamarin.Forms.Core/Interactivity/EventTrigger.cs index 52e221a0..defe799f 100644 --- a/Xamarin.Forms.Core/Interactivity/EventTrigger.cs +++ b/Xamarin.Forms.Core/Interactivity/EventTrigger.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Linq; using System.Reflection; +using Xamarin.Forms.Internals; namespace Xamarin.Forms { diff --git a/Xamarin.Forms.Core/Internals/PreserveAttribute.cs b/Xamarin.Forms.Core/Internals/PreserveAttribute.cs new file mode 100644 index 00000000..0ba191e2 --- /dev/null +++ b/Xamarin.Forms.Core/Internals/PreserveAttribute.cs @@ -0,0 +1,21 @@ +using System; + +namespace Xamarin.Forms.Internals +{ + [AttributeUsage(AttributeTargets.All)] + public 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 diff --git a/Xamarin.Forms.Core/PreserveAttribute.cs b/Xamarin.Forms.Core/PreserveAttribute.cs deleted file mode 100644 index 41487c86..00000000 --- a/Xamarin.Forms.Core/PreserveAttribute.cs +++ /dev/null @@ -1,23 +0,0 @@ -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 diff --git a/Xamarin.Forms.Core/Properties/AssemblyInfo.cs b/Xamarin.Forms.Core/Properties/AssemblyInfo.cs index b64ecc4d..e78af10f 100644 --- a/Xamarin.Forms.Core/Properties/AssemblyInfo.cs +++ b/Xamarin.Forms.Core/Properties/AssemblyInfo.cs @@ -1,6 +1,7 @@ using System.Reflection; using System.Runtime.CompilerServices; using Xamarin.Forms; +using Xamarin.Forms.Internals; [assembly: AssemblyTitle("Xamarin.Forms.Core")] [assembly: AssemblyDescription("")] diff --git a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj index e72a2be7..d8a3772c 100644 --- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj +++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj @@ -182,7 +182,7 @@ <Compile Include="PinchGestureUpdatedEventArgs.cs" /> <Compile Include="PlatformEffect.cs" /> <Compile Include="PointTypeConverter.cs" /> - <Compile Include="PreserveAttribute.cs" /> + <Compile Include="Internals\PreserveAttribute.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="BindableObject.cs" /> <Compile Include="BindableObjectExtensions.cs" /> |