diff options
Diffstat (limited to 'mcs/class/System.Xaml/System.Windows.Markup/ContentWrapperAttribute.cs')
-rwxr-xr-x | mcs/class/System.Xaml/System.Windows.Markup/ContentWrapperAttribute.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/class/System.Xaml/System.Windows.Markup/ContentWrapperAttribute.cs b/mcs/class/System.Xaml/System.Windows.Markup/ContentWrapperAttribute.cs index f92f11ece2f..0407a18fe74 100755 --- a/mcs/class/System.Xaml/System.Windows.Markup/ContentWrapperAttribute.cs +++ b/mcs/class/System.Xaml/System.Windows.Markup/ContentWrapperAttribute.cs @@ -25,6 +25,7 @@ using System; namespace System.Windows.Markup { [AttributeUsage (AttributeTargets.Class, AllowMultiple = true, Inherited = true)] + [System.Runtime.CompilerServices.TypeForwardedFrom (Consts.AssemblyWindowsBase)] public sealed class ContentWrapperAttribute : Attribute { public ContentWrapperAttribute (Type contentWrapper) @@ -37,5 +38,17 @@ namespace System.Windows.Markup get { return ContentWrapper; } } + public override bool Equals (object other) + { + var cwa = other as ContentWrapperAttribute; + if (cwa == null) + return false; + return ContentWrapper != null ? ContentWrapper == cwa.ContentWrapper : cwa.ContentWrapper == null; + } + + public override int GetHashCode () + { + return ContentWrapper != null ? ContentWrapper.GetHashCode () : 0; + } } } |