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; }