Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Xaml/System.Windows.Markup/ContentWrapperAttribute.cs')
-rwxr-xr-xmcs/class/System.Xaml/System.Windows.Markup/ContentWrapperAttribute.cs13
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;
+ }
}
}