Exemple #1
0
        public override bool Equals(object obj)
        {
            Mnemocode another = obj as Mnemocode;

            if (another == null)
            {
                throw new ArgumentException("Wrong comparison type.");
            }
            return(Equals(another));
        }
Exemple #2
0
 public bool Equals(Mnemocode another)
 {
     return(Code.Equals(another.Code, StringComparison.OrdinalIgnoreCase));
 }