Beispiel #1
0
 /// <summary>
 /// 同値判定(2)
 /// </summary>
 /// <param name="id">IdWithDisplayName : 比較対象</param>
 /// <returns></returns>
 public bool Equals(IdWithDisplayName <T> id)
 {
     if ((object)id != null)
     {
         return(Id.Equals(id.Id));
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 大小比較メソッド
 ///  ※ IComparableの実装
 /// </summary>
 /// <param name="id">IdWithDisplayName : 比較対象</param>
 /// <returns>int</returns>
 public int CompareTo(IdWithDisplayName <T> id)
 {
     return(Id.CompareTo(id.Id));
 }