~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/ItemToolboxNode.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                }
120
120
                
121
121
                public override int GetHashCode ()
122
 
                {
123
 
                        return (string.Empty + Name + Category + Description).GetHashCode ();
 
122
                {
 
123
                        int code = 0;
 
124
                        if (Name != null)
 
125
                                code ^= Name.GetHashCode ();
 
126
                        if (Category != null)
 
127
                                code ^= Category.GetHashCode ();
 
128
                        if (Description != null)
 
129
                                code ^= Description.GetHashCode ();
 
130
                        return code;
124
131
                }
125
132
                
126
133
                public int CompareTo (object other)