コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = IntProp;
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)ModelEnum;
         hashCode = (hashCode * 397) ^ (StrProp != null ? StrProp.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubModel != null ? SubModel.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
        private StringCollection CollectString(StrProp prop)
        {
            StringCollection result = new StringCollection();

            foreach (TerminalParam param in _history)
            {
                string t = prop(param);
                if (t != null && t.Length > 0 && !result.Contains(t))
                {
                    result.Add(t);
                }
            }
            return(result);
        }
コード例 #3
0
 private StringCollection CollectString(StrProp prop)
 {
     StringCollection result = new StringCollection();
     foreach(TerminalParam param in _history) {
         string t  = prop(param);
         if(t!=null && t.Length>0 && !result.Contains(t)) result.Add(t);
     }
     return result;
 }