2 // System.ComponentModel.Design.CommandID.cs
5 // Alejandro Sánchez Acosta <raciel@es.gnu.org>
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
8 // (C) Alejandro Sánchez Acosta
9 // (C) 2003 Andreas Nahr
12 using System.Runtime.InteropServices;
14 namespace System.ComponentModel.Design
17 public class CommandID
22 public CommandID (Guid menuGroup, int commandID)
28 public virtual Guid Guid {
34 public virtual int ID {
40 public override bool Equals (object obj)
42 if (!(obj is CommandID))
46 return ((CommandID) obj).Guid.Equals (guid) &&
47 ((CommandID) obj).ID.Equals (cID);
50 public override int GetHashCode()
52 // Guid can only be valid
53 return guid.GetHashCode() ^ cID.GetHashCode();
56 public override string ToString()
58 return guid.ToString () + " : " + cID.ToString ();