private bool IsIDEquel(TID id1, TID id2)
 {
     if (typeof(TID) == typeof(string))
     {
         return((id1 as string) == (id2 as string));
     }
     else if (typeof(TID) == typeof(Guid))
     {
         return(GuidConverter.Equals(id1, id2));
     }
     else if (typeof(TID) == typeof(int))
     {
         return(Convert.ToInt32(id1) == Convert.ToInt32(id2));
     }
     else if (typeof(TID) == typeof(long))
     {
         return(Convert.ToInt64(id1) == Convert.ToInt64(id2));
     }
     return(false);
 }