// try to find a gridRow public gridRow find(canMessageId m) { long key = m.GetHashCodeUnique(); if (dict.ContainsKey(key)) { return(dict[key]); } return(null); }
// equals public override bool Equals(Object obj) { // Check for null values and compare run-time types. if (obj == null || GetType() != obj.GetType()) { return(false); } canMessageId p = (canMessageId)obj; return(p.GetHashCodeUnique() == GetHashCodeUnique()); }
// get an unique hash code based key private long GetAKey(canMessageId item) { return(item.GetHashCodeUnique()); }